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

Projection setting for tiles #70

Open
programmin1 opened this issue Mar 15, 2020 · 2 comments
Open

Projection setting for tiles #70

programmin1 opened this issue Mar 15, 2020 · 2 comments

Comments

@programmin1
Copy link

When I use a Mapbox map (with a free account this is https://api.mapbox.com/v4/mapbox.outdoors/#Z/#Y/#X.jpg90?access_token=...key) https://docs.mapbox.com/help/glossary/raster-tiles-api/
for the tiles in this example, the map shows all broken up, which apparently is due to the mapping projection of Mapbox. https://docs.mapbox.com/help/how-mapbox-works/mapbox-data/
https://stackoverflow.com/questions/34025979/proj4leaflet-not-working-with-various-tile-servers

Is there any option to change the projection of OSMGPSMap library?

@programmin1
Copy link
Author

I fixed this issue so that I was able to use Mapbox - I asked support about upgrading a mapbox-studio map tiles api, and I found https://api.mapbox.com/styles/v1/programmin/ck7jtie300p7e1iqi1ow2yvi3/tiles/256/#Z/#X/#Y?access_token= for example, works just fine.
https://docs.mapbox.com/api/maps/#retrieve-raster-tiles-from-styles
However as you can see the tilesize 256 uses "four times as many API requests" than their default of 512 which looks all goofed in the map.

@nzjrs
Copy link
Owner

nzjrs commented Sep 14, 2020 via email

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