Error when changing mapbox style with layers using Plotly.react()
Changing the plot layout.mapbox.style, with a layout.mapbox.layers set, causes the errors:
Error: The layer 'plotly-layout-layer-dce5c9-mapbox-0' does not exist in the map's style and cannot be styled.
at i.setPaintProperty (plotly-latest.js:61749)
at r.setPaintProperty (plotly-latest.js:61749)
at Mapbox.proto.setOptions (plotly-latest.js:146082)
at MapboxLayer.proto.updateStyle (plotly-latest.js:144911)
at MapboxLayer.update (plotly-latest.js:144794)
at Mapbox.proto.updateLayers (plotly-latest.js:146060)
at Mapbox.proto.updateLayout (plotly-latest.js:145732)
at plotly-latest.js:145576
plotly-latest.js:145763 Uncaught (in promise) Error: Mapbox error.
at r.handler (plotly-latest.js:145763)
at r.kt.fire (plotly-latest.js:61745)
at i.kt.fire (plotly-latest.js:61745)
at i.setPaintProperty (plotly-latest.js:61749)
at r.setPaintProperty (plotly-latest.js:61749)
at Mapbox.proto.setOptions (plotly-latest.js:146082)
at MapboxLayer.proto.updateStyle (plotly-latest.js:144911)
at MapboxLayer.update (plotly-latest.js:144794)
at Mapbox.proto.updateLayers (plotly-latest.js:146060)
at Mapbox.proto.updateLayout (plotly-latest.js:145732)
https://codepen.io/jeremyguinn/pen/gOLmozB
I'm facing the same issue. Any updates on this?
same
This appears to be a distinct issue from #6444
Here's a codepen updated to the latest plotly.js version: https://codepen.io/alexcjohnson/pen/NWBOVLM
(note plotly-latest.js from the CDN is stuck on v1.x and no longer updating)
It appears I also am experiencing this bug.
Problem: scattermapbox stops updating tiles and polygon colours upon callback (after ~5 callabcks)
Stack: Problem confirmed with both:
dash: 2.7.0
dash-core-components: 2.0.0
dash-html-components: 2.0.0
and
dash: 2.6.2
dash-bootstrap-components 1.3.1
dash-core-components 2.0.0
dash-extensions 0.1.6
dash-html-components 2.0.0
plotly 5.9.0
Error:
Uncaught (in promise) Error: Mapbox error.
at i.r (plotly.v2_7_0m1667509735.min.js:37:1056684)
at Et.fire (plotly.v2_7_0m1667509735.min.js:20:333027)
at Et.fire (plotly.v2_7_0m1667509735.min.js:20:333170)
at Et.fire (plotly.v2_7_0m1667509735.min.js:20:333170)
at Et.fire (plotly.v2_7_0m1667509735.min.js:20:333170)
at r._tileLoaded (plotly.v2_7_0m1667509735.min.js:20:768423)
at plotly.v2_7_0m1667509735.min.js:20:725812
at plotly.v2_7_0m1667509735.min.js:20:330966
at plotly.v2_7_0m1667509735.min.js:20:328968
This error also prevent setting a marker symbol using a icon.
Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson
This is still a problem for me using plotly 5.23