0
Geomap: Zoom past the bundled map
Source: grafana/grafana#138421 · opened by @drew08t
Keep drawing the map when a panel zooms past the lightweight bundled map's maximum zoom.
Today the Protomaps layer assumes tiles exist up to zoom 15. With an archive that stops lower, zooming further shows blank tiles. Instead, read the archive's maximum zoom from its header and size the tile grid to it, so OpenLayers scales up the last available zoom's tiles. Labels and lines stay sharp because the tiles are vectors; only the level of detail stops increasing.
• Applies to any PMTiles archive with a lower maximum zoom, not just the bundled one.
• Keep the style's zoom-dependent rules working at higher view zooms.
• Add a test with an archive whose maximum zoom is below the view zoom.
Today the Protomaps layer assumes tiles exist up to zoom 15. With an archive that stops lower, zooming further shows blank tiles. Instead, read the archive's maximum zoom from its header and size the tile grid to it, so OpenLayers scales up the last available zoom's tiles. Labels and lines stay sharp because the tiles are vectors; only the level of detail stops increasing.
• Applies to any PMTiles archive with a lower maximum zoom, not just the bundled one.
• Keep the style's zoom-dependent rules working at higher view zooms.
• Add a test with an archive whose maximum zoom is below the view zoom.
No pledges yet. Be the first to back this.
No comments yet.