Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when changing mapbox style with layers using Plotly.react() #5505

Open
JeremyGuinn opened this issue Feb 15, 2021 · 7 comments
Open

Error when changing mapbox style with layers using Plotly.react() #5505

JeremyGuinn opened this issue Feb 15, 2021 · 7 comments
Labels
bug something broken P3 not needed for current cycle

Comments

@JeremyGuinn
Copy link

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

@tobiasdirksen
Copy link

I'm facing the same issue. Any updates on this?

@cyberhornet69
Copy link

same

@alexcjohnson
Copy link
Collaborator

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)

@ciskoh
Copy link

ciskoh commented Feb 1, 2023

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

@archmoj archmoj added the bug something broken label Mar 16, 2023
@MangelMaxime
Copy link

This error also prevent setting a marker symbol using a icon.

@gvwilson
Copy link
Contributor

gvwilson commented Jul 5, 2024

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

@gvwilson gvwilson closed this as completed Jul 5, 2024
@dreina-gei
Copy link

dreina-gei commented Aug 9, 2024

This is still a problem for me using plotly 5.23

@gvwilson gvwilson reopened this Aug 10, 2024
@gvwilson gvwilson added the P3 not needed for current cycle label Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

9 participants