You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm displaying custom tiles, a pmtiles file generated by Tippecanoe with max zoom = 8. Without overzoom setting, Source.maxzoom=8 I'm getting 404 errors at zoom level > 8, which breaks the Layer.visibility prop update logic.
<Map...><Sourceid='my-source'type='vector'tiles='https://my-tile-server.com/areas/{z}/{x}/{y}.pbf'maxzoom={8}// removing this will cause 404, bre><Layerid='my-layer'layout={{visible: visibleFlag ? 'visible' : 'none'}}/></Source></Map>
When tiles are not found, the toggle button no longer works. I need to zoom/pan the map.
Expected Behavior
Since I can't easily catch exceptions generated by the tile requests, the Layer prop should handle the exception.
Description
I'm displaying custom tiles, a pmtiles file generated by Tippecanoe with max zoom = 8. Without overzoom setting,
Source.maxzoom=8
I'm getting 404 errors at zoom level > 8, which breaks the Layer.visibility prop update logic.When tiles are not found, the toggle button no longer works. I need to zoom/pan the map.
Expected Behavior
Since I can't easily catch exceptions generated by the tile requests, the Layer prop should handle the exception.
Steps to Reproduce
To reproduce you'll need a custom tile url with data capped at a zoom level.
https://codesandbox.io/p/sandbox/react-map-gl-404-props-4gn8cz
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: