Troubleshooting
Last updated
Last updated
Layers can't be reused, they need to be recreated.
After deck.MapboxOverlay
is added to the map with maplibregl.Map.addControl
and removed from the map with maplibregl.Map.removeControl
, adding it back again with maplibregl.Map.addControl
doesn't render any layers.
After removing deck.MapboxOverlay
from the map with maplibregl.Map.removeControl
, remove layers as well with deck.MapboxOverlay.setProps({ layers: [] })
.
After adding deck.MapboxOverlay
to the map with maplibregl.Map.addControl
, add layers with deck.MapboxOverlay.setProps({ layers: [...all layers...] })
.
HighLowLayer uses deck.gl CollisionFilterExtension, which has a known unresolved bug that it can't be used after bitmap layers (RasterLayer, ContourLayer).
HighLowLayer doesn't display.
Move HighLowLayer to be before bitmap layers (RasterLayer, ContourLayer), and offset it with getPolygonOffset: () => [0, -1000]
.