I click on the buttons 2 times.
The first time I see in the console the figure data as I expect,
now after I click I expect to see the map as an empty figure, but no it doesn’t update the map.
and the second time I click, it prints the exact same data it printed before meaning the figure really didn’t change.
Now for clarifications:
I checked the id names they’re right (the callback runs after all)
My real goal is to return a new scattermapbox with a different set of points, I am using an empty figure for simplification of the question, when using the scattermapbox with new points I have the exact same problem.
I tried looking at the map element in the inspect while clicking the button it shows on the div created by the graph figure with the id data -dash-is-loading for a second and then it disappears, and nothing changes below the div with the id.
any idea why this happens?
UPDATE
I get an error Uncaught (in promise) Error: Mapbox error.
Any idea what it means and if its the cause of the problem?
When I wanted to change the points ploted on the map, I called this function again and passed the result to Dash. When I printed stations_map, it was changed, but the old version was still displayed.
I have no idea why, but changing to this version helped:
I’m still having the issue even while using the latest version of dash.
I’ve posted a minimal example here: Go Scattermapbox Does Not Update
Could you check it out?