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

Skewed downloads if the map used for selecting the area does not use maximum lat range (-85.0511, 85.0511) #6

Open
merlos opened this issue Sep 1, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@merlos
Copy link
Owner

merlos commented Sep 1, 2019

To reproduce:

  1. Create a controller with a MapView that uses Apple Maps. Use this map to select a region.

  2. Download a region with a MapCache that uses Open Street Maps (OSM) as tile Server.

  3. Create a second controller that displays another MapView but this time using MapCache with OSM as tile server. Use the same MapCache used for downloading the region (ie: same name).

You´ll see that the second map does not display the area selected in the controller of (1), the tiles downloaded were in a different location.

The problem is that whereas Apple Maps uses -90 to 90 as range in the latitude, OSM only uses -85.0511 to 85.0511, so the conversion coordinates to tiles does not work.

In the code, this conversion is done in TileCoords

Related with #5

@merlos merlos added the bug Something isn't working label May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant