protomaps / PMTiles

Cloud-optimized + compressed single-file tile archives for vector and raster maps
https://protomaps.com/docs/pmtiles/
BSD 3-Clause "New" or "Revised" License
2.02k stars 118 forks source link

Leaflet API supports {r} to switch to @2x or @3x pmtiles file #7

Closed bdon closed 3 years ago

bdon commented 3 years ago

I think this is out of scope of the library. Just use L.Browser.retina or window.devicePixelRatio to choose the PMTiles URL: EXAMPLE.pmtiles, EXAMPLE@2x.pmtiles, EXAMPLE@3x.pmtiles, etc.