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

iOS13 zooms more than OSM tiles #133

Closed
merlos opened this issue Oct 24, 2019 · 0 comments · Fixed by #139
Closed

iOS13 zooms more than OSM tiles #133

merlos opened this issue Oct 24, 2019 · 0 comments · Fixed by #139

Comments

@merlos
Copy link
Owner

merlos commented Oct 24, 2019

In iOS13, it seems Apple introduced the possibility of zooming more than the available OSM tiles (https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames)

Steps to reproduce

  1. Get source from iOS 13's dark mode support + bug fixes #125
  2. Compile and run the app
  3. Select Open Street Maps as tile server
  4. Zoom a lot...

At some point no tiles are displayed.


** Possible solution**

The issue may be solved by limiting the max zoom for each tile server:

  1. Add to GPXTileServer the max zoom for each source.

  2. Then calculate the current zoom (see https://github.com/merlos/MapCache/blob/master/MapCache/Classes/MKMapView%2BMapCache.swift)

  3. Limit max zoom
    https://stackoverflow.com/questions/1636868/is-there-way-to-limit-mkmapview-maximum-zoom-level

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

Successfully merging a pull request may close this issue.

1 participant