Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapnik errors around zoom levels 21 and 22... naturally #306

Open
jidanni opened this issue Oct 2, 2024 · 4 comments
Open

Mapnik errors around zoom levels 21 and 22... naturally #306

jidanni opened this issue Oct 2, 2024 · 4 comments

Comments

@jidanni
Copy link
Contributor

jidanni commented Oct 2, 2024

Panning to unexplored areas: the tiles seem to load normally, but why all the errors, particularly around zoom levels 21 and 22?

If I didn't look at the log messages button there on the bottom bar I wouldn't know something was wrong.

Warning Download error: /home/jidanni/.cache/viking/OSM-Mapnik/21/1752674/903328.png
Warning curl_download_uri: http response: 400 for uri http://tile.openstreetmap.org/21/1752674/903328.png
Warning Download error: /home/jidanni/.cache/viking/OSM-Mapnik/21/1752674/903327.png
Warning curl_download_uri: http response: 400 for uri http://tile.openstreetmap.org/21/1752674/903327.png
Warning Download error: /home/jidanni/.cache/viking/OSM-Mapnik/21/1752674/903326.png
Warning curl_download_uri: http response: 400 for uri http://tile.openstreetmap.org/21/1752674/903326.png
Warning Download error: /home/jidanni/.cache/viking/OSM-Mapnik/21/1752673/903328.png
Warning curl_download_uri: http response: 400 for uri http://tile.openstreetmap.org/21/1752673/903328.png

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400 seems to point the finger at Viking.

@jidanni
Copy link
Contributor Author

jidanni commented Oct 2, 2024

Wait. What makes Viking think that there are more than 19 zoom levels for Mapnik? At least that's how it is on OSM.ORG.
https://www.openstreetmap.org/#map=19/24.181931/120.866100
https://gis.stackexchange.com/questions/174375/loading-tile-zoom-level-20

@jidanni jidanni changed the title Mapnik errors around zoom levels 21 and 22 Mapnik errors around zoom levels 21 and 22... naturally Oct 2, 2024
@rnorris
Copy link
Collaborator

rnorris commented Oct 3, 2024

The file osm.c contains the OSM Mapnik map definition with a hardcoded limit of zoom-max set to 19.

When panning around it should not (and it does not on my system) make requests for tiles at zoom levels of 20 and 21.

Unfortunately, it appears if you use F5 to refresh - then that bypasses the zoom limit check - and so makes unnecessary/unwanted requests :(

@jidanni
Copy link
Contributor Author

jidanni commented Oct 5, 2024

Also once one somehow gets the half-baked parking lot you see above, one is stuck for life with it. As there is no mechanism to just throw away the tiles one sees, without throwing away more.

Edit: easy workaround: I just went into ~/.cache/Viking and manually deleted the offending files of anything that I wished would refresh.

@jidanni
Copy link
Contributor Author

jidanni commented Oct 9, 2024

But it seems once a tile is in,
the worst thing that could happen is it gets edited upstream,
then we get a permanent mix of old and new tiles.
Screenshot 2024-10-09 10 17 29
Oh well, looks like I'll just have to

rm -r .cache/viking/OSM-Mapnik

again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants