Local GeoJson file on MapBox cause console error

I have multi controller inputs to control the map(a search control, a layer control and map center control)

If I load the layers (geojson from local file), any other control after that will give console error. Be note the layer( Choropleth) loads ok and I can change layers with no error given. So I think the layer per ce is working fine

The most weird thing is that I tried to upload all the geojson file to github and try to use the url as source, then it works all fine.

Anyone might have an answer for this

Hmmm, I think this is related to this issue: https://github.com/plotly/dash/issues/223

If it is then it’s a bug. I’ve been working to triage this and so far haven’t had any luck… but that’s where you can monitor it for updates.

@kaibo After seeing the other mapbox issue you commented on I’m a bit unsure now… The error looks almost exactly the same though, something is happening with how plotly.js is interacting with mapbox