2Abendsegler / GClh

GC little helper II - Some little things to make life easy (on www.geocaching.com). Powerful, configurable tool to improve and expand the geocaching pages.
GNU General Public License v2.0
56 stars 38 forks source link

[Maps] Map layer "Thunderforest OpenCycleMap" stopped working (and problems with other layers) #2606

Open dcjkfgdjhd opened 1 month ago

dcjkfgdjhd commented 1 month ago

Describe the bug

When I select this layer, nothing happens, I only see the GC.com default map.

To Reproduce

See above.

Expected behavior

No response

OS

Windows

Browser

Firefox

GClh Version

0.15.8

Additional context

OpenCycleMap, tile-hosted by Thunderforest, is included as an official map layer on openstreetmap.org and works without issues.

2Abendsegler commented 1 month ago

I cannot reproduce the problem. At the moment the layer works for me. Maybe the layer was unavailable for a short time.

Can you please check this?

dcjkfgdjhd commented 1 month ago

Absolutely reproducible for me, on two computers, for months now.

2Abendsegler commented 1 month ago

Maybe you could try some things:

  1. Can you select other layers?
  2. Can you please turn off all other scripts and add-ons and then test again?
  3. Can you please call the console (function key F12 and then select console)? If there are messages, please take a screenshot.
dcjkfgdjhd commented 1 month ago

1. Yes, but not the Thunderforest Layers:

Working:

Not working:

2. No change.

3. Yes, there are messages. The link leads here: https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content

grafik

2Abendsegler commented 1 month ago

Could it be that you have “HTTPS-only mode” enabled? You can find this in the settings in your browser. If so, please deactivate it and test again.

In Firefox it looks something like this in German: Unbenannt

2Abendsegler commented 1 month ago

Are you working with Chrome? I can now reproduce the problem on Chrome. But so far I haven't been able to determine what the reason is. It could be that it has something to do with the http calls.

dcjkfgdjhd commented 1 month ago

"HTTPS only" is not enabled.

No, I use Firefox.

2Abendsegler commented 1 month ago

First results: We access all layers via http. The browser then goes and upgrades to https, if it exists. All layers have an https counterpart, except the “Thunderforest” layers. Actually, it seems correct that such addresses are no longer loaded. The question is why they are still loading in my Firefox.

2Abendsegler commented 1 month ago

... we probably need an API key for the https calls.

capoaira commented 1 month ago

I can reproduce this Issue and can the three Stamen-Maps to the not working layers. With the same "mixed content" errors, (https-only is disabled)

Using Firefox in Linux Mint

It looks like the browser updates the url to https, witch is not supported by the servers.

btw: Also "CyclOSM: OSM-based bicycle map" does not for me, the request just gets no response.

capoaira commented 1 month ago

I change Firefox internal settings to stop Firefox updating to https:

  1. Type about:config in the address bar and press Enter.

  2. Click "Accept the Risk and Continue" if prompted.

  3. In the search bar at the top, type mixed_content.

  4. Locate security.mixed_content.upgrade_display_content.image and double-click it to set it to false.

With that, the thunderforest maps work again, but the stamen still not. But the stamen also not work, when I type it in the address bar, so they are maybe not available anymore. (Same as "Esri NatGeoWorldMap")

dcjkfgdjhd commented 1 month ago

CyclOSM works for me, but often unreliably (some tiles not getting delivered).

2Abendsegler commented 1 month ago
2Abendsegler commented 1 month ago

With the next version, the Thunderforest map layers will work again. We now have an API key for this.

2Abendsegler commented 1 month ago

I won't be working on the problems with the Stamen and CyclOSM map layer at the moment due to lack of time.

We'll leave the issue open for now for these both problems. Maybe someone will be found who has the time and desire to work on it.

As with the "Tracestack Topo" in Issue #2602, it would probably be useful to set up an API key for each user for the Stamen map layer. But the effort involved seems too great to me at the moment. There would also probably be a lot of requests from users to set up the API key. This effort also seems too great to me at the moment.