Jump to content

Default map settings


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
6 minutes ago, ardila.nl said:

Isn't that what you are looking for?

 

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.

 

tmp_cap.PNG.ab49953b7ba7a32c352b1e9c055f27c0.PNG

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
14 hours ago, Viajero Perdido said:

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

 

Something like that ... 🤭

 

grafik.thumb.png.1e83d83d3a39dff82c7f548a00d6f25a.png

 

 

On 6/11/2021 at 6:33 AM, Huck1974 said:

- Browse geocaches

- OpenStreetMap Defalult

 

You can do it also with script GClh. See my signature.

  • Upvote 2
  • Love 1
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...