Skip to content

Enable pmtiles overzooming? #16

Answered by bdon
chasedawson asked this question in Q&A
Discussion options

You must be logged in to vote

in Mapbox/Maplibre GL the sources object may look like:

'abc':{'tiles':['https://example.com/tileset/{z}/{x}/{y}.mvt']}

That does not have a maxzoom so it will not over zoom properly. You can either add:

'abc':{'tiles':['https://example.com/tileset/{z}/{x}/{y}.mvt', 'maxzoom': 15]} if you know your maxzoom, or you can use TileJSON:

'abc':{'url':'https://example.com/tileset.json'} (note url instead of tiles)

This will determine the maxzoom automatically but requires you to set the public hostname in the Lambda code.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chasedawson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants