Skip to content

Overzooming in PMTiles Data Source - No Way to Define maxzoom in Maputnik #1028

@FabianRechsteiner

Description

@FabianRechsteiner

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:

  1. Add a PMTiles data source in Maputnik that only contains zoom levels 0 to 15.
  2. Zoom in past zoom level 15 (e.g., to zoom level 16).
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions