PMTiles icon indicating copy to clipboard operation
PMTiles copied to clipboard

Web clients should infer `maxzoom` from metadata

Open bdon opened this issue 3 years ago • 1 comments

This is a gotcha when working with overzooming

see https://maplibre.org/maplibre-gl-js-docs/style-spec/sources/#vector-maxzoom

bdon avatar Jun 12 '22 05:06 bdon

Leaflet GridLayer creation is synchronous; maxNativeZoom, minNativeZoom and bounds can only be specified at layer creation time. So to do this correctly using existing Leaflet APIs needs to be done by the user, or we need to change the layer creation API to be asynchronous.

bdon avatar Oct 15 '22 08:10 bdon

Going to call this closed because it works for MapLibre. Leaflet is a pass since layer creation is synchronous.

bdon avatar Dec 02 '22 04:12 bdon