Enable pmtiles overzooming? #16
-
|
I'm serving a .pmtiles archive through s3, lambda, and cloudfront to provide source vector tile data to a map using Mapbox GL JS. I can't get the map to overzoom the vector tile data, however. If I just upload my .pmtiles archive to the pmtiles.io viewer, I can interact with the data past the max zoom, yet when it's served via my architecture my mapping application won't show zoom levels beyond the maxzoom of the tileset. Any suggestions on how to get overzooming working with my setup? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
in Mapbox/Maplibre GL the
That does not have a
This will determine the |
Beta Was this translation helpful? Give feedback.
in Mapbox/Maplibre GL the
sourcesobject may look like:'abc':{'tiles':['https://example.com/tileset/{z}/{x}/{y}.mvt']}That does not have a
maxzoomso 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'}(noteurlinstead oftiles)This will determine the
maxzoomautomatically but requires you to set the public hostname in the Lambda code.