Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Can you update the state just to change a map plot layout?

$
0
0

@Michael01 wrote:

I would like to toggle between “open-street-map” and “satellite” in my map plot layout view, is there a way just to change the layout from the Scattermapbox plot?

In my first callback, I do a SQL query make data frame then plot a map.

fig_map.update_layout(mapbox_style="satellite", mapbox_accesstoken=map_token)

If I have to redo the whole callback should I store my SQL query in a cache instead?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles