Jump to content

Default map settings


Huck1974

Recommended Posts

Hi there,

 

I like to see the map on geocaching.com as following:

 

- Browse geocaches

- OpenStreetMap Defalult

 

Where can I set it as it starts like this as default ?

And if i can't set it, why it is impossible to set this defaults ?

 

 

Huck1974

  • Funny 2
Link to post

Assuming that you are using the Leaflet-based map, here is a bodged-together UserScript that automatically switches to "OpenStreetMap Default" on page load.

 

// ==UserScript==
// @name         Geocaching Map Redirect
// @namespace    http://tampermonkey.net/
// @version      0.1
// @match        https://www.geocaching.com/map/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    var x;

    const SET_OSM = function() {
        console.log("Attempting to set OSM...");

        const OSM_RADIO_BTN = document.querySelectorAll("form.leaflet-control-layers-list div label input")[1];
        if (OSM_RADIO_BTN) {
            OSM_RADIO_BTN.click();

            clearInterval(x);
        }
    }

    x = setInterval(SET_OSM, 500);
})();

 

 

Link to post
42 minutes ago, Hügh said:

 

I think @Huck1974's issue is that the default map tiles are "Geocaching", rather than "OpenStreetMap Default." See the selector on the right side of the map.

 

Right, that's what I would like !

I am using the Leaflet-based map, so I will try you script !

And once again, Thank you Hügh ! :) 

Link to post

Curious... 

 

Has anybody managed to script-hack the great new CyclOSM map into that list?

 

If I was still bothering to suggest improvements, that would be my number-one.  (To see that map albeit without caches, click the never-used OpenStreetMap link on a cache page, tap the layers icon near the top-right corner, and select CyclOSM.) 

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...