osm-gps-map icon indicating copy to clipboard operation
osm-gps-map copied to clipboard

Projection setting for tiles

Open programmin1 opened this issue 4 years ago • 2 comments

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 avatar Mar 15 '20 04:03 programmin1

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.

programmin1 avatar May 22 '20 05:05 programmin1

Hi, I dont have time to work on this anymore. I am looking for a new maintainer to take over

On Fri, 22 May 2020 at 06:05, programmin1 [email protected] wrote:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nzjrs/osm-gps-map/issues/70#issuecomment-632483170, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKHI5XNANEHGMDKLKTBETRSYB25ANCNFSM4LKMTTGA .

nzjrs avatar Sep 14 '20 10:09 nzjrs