-
-
Notifications
You must be signed in to change notification settings - Fork 438
Description
Overzooming in PMTiles Data Source - No Way to Define maxzoom
in Maputnik
Description:
Currently, PMTiles are supported as a data source in Maputnik, which is great! However, I've encountered an issue where it is not possible to manually define the minzoom
or maxzoom
for a PMTiles source. These values are automatically derived from the data, but I would like to have more control, especially over the maxzoom
.
In my case, my PMTiles data only includes tiles from zoom levels 0 to 15. I would like to define a maxzoom
for the source to enable overzooming, so that the tiles from zoom level 15 can also be displayed when zooming in further (e.g., at zoom level 16).
Current Issue:
- There is no way to specify a
maxzoom
for PMTiles sources in Maputnik. - The tiles disappear at zoom level 16 since no data exists for that zoom level in the PMTiles file.
- I want the data from zoom level 15 to continue being shown at higher zoom levels, like in Mapbox GL JS, where overzooming happens automatically when
maxzoom
is set.
Expected Behavior:
- I should be able to set a
maxzoom
for a PMTiles source manually in Maputnik. - This would allow overzooming, meaning that data from zoom 15 would still be visible at zoom 16 and higher.
Steps to Reproduce:
- Add a PMTiles data source in Maputnik that only contains zoom levels 0 to 15.
- Zoom in past zoom level 15 (e.g., to zoom level 16).
- The data disappears since there is no overzoom functionality.
Request:
Please add support for manually setting minzoom
and maxzoom
for PMTiles sources in Maputnik, or allow for automatic overzooming similar to how Mapbox GL JS handles it when the max zoom level is reached.
Related to Issue #807.