-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
mapbox layers fail to update on second callback #223
Comments
I'm running your test.py yet I cannot reproduce the bug. When selecting any color both maps (with marker only and with marker + GeoJSON polygon layer) change colors. Might I make a small suggestion for you to try? There's no need to define a default argument for figure in the dcc.Graph elements of the app.layout, you can just leave them empty, like so: Besides trying that, I really can't reproduce your problem to think of anything else. |
Thanks for the suggestion on initializing the map. |
@tomasfarias what versions of Plotly, Dash, etc. are you using? |
Can somebody else try the example too? |
@araichev I ran your app on dash 0.20.0, dash-core-components 0.18.1 and dash-html-components 0.8.0 and didn't experience any problem. However I repeated the test in my work laptop, where I was running the latest version of dash and it's components, and there it was. Exactly the same issue you showed in that gif. |
@araichev I tested your updated code and have the same issue as you (can update the colour from orange to blue initially, but then the right-hand map no longer updates). I ran it with dash 0.21.0, dash-core-components 0.21.0 and dash-html-components 0.9.0 (and viewed in Firefox browser) |
OK, it appears we have a regression bug. |
Specifically, the layers issue was introduced in |
any progress on this? Would the solution be an update to Dash or to Plotly.js? |
I have the same question as araichev! |
Any progress on this? I have same issue. |
+1 from me - this is quite a problem since this is the only way to do choropleth easily right now! |
This is likely a plotly.js issue with |
@araichev, (your second gif) will the canvas of the second chart be updated (point will be orange) if you double-click on the second chart? |
@pikhovkin no, it won't. |
I encountered the same issue with:
The only (temporary) solution I found was: |
This was fixed in plotly/plotly.js#2734 Once the new plotly.js version is released and added this can be closed. |
Timeline for getting this fix propagated into dash? |
As soon as plotly.js makes a release. Within 2 weeks usually. You can see their release schedule here: https://github.com/plotly/plotly.js/releases |
Solved in plotly/dash-core-components#228. Many thanks to everyone who reported ❤️ |
Hi folks, i've been plotting maps with custom GeoJSON layers using Plotly Scattermapbox and following this Plotly Community thread.
It works fine until i introduce callbacks.
I wrote a minimal Dash app to demonstrate my problem and made an animated GIF of it in action.
(I can't attach the GIF for some reason.)
The app has a dropdown and two maps, one with a marker and one with a marker and a custom GeoJSON polygon layer.
Selecting different colors from the dropdown should change the marker and polygon colors on both maps, but it only works on the first map, the one without a polygon.
The text was updated successfully, but these errors were encountered: