Open havardl opened 4 years ago
Seems that map.getSource(layerId)
won't find the layer, so the layers might be removed on mapStyle change?
Reason and potential workaround here: https://github.com/mapbox/mapbox-gl-js/issues/6701 https://github.com/mapbox/mapbox-gl-js/issues/4006
When changing map style, the added isochrone polygon is lost. Need to make sure it persist across changes.