Hello,
I have a map defined like that:
map = px.line_mapbox(df, lat=df['lat'], lon=df['lon'])
map.update_layout(mapbox_style="open-street-map")
dcc.Graph(id="map", figure = map)
Then when i try to update the dataframe to use new data with dropdown like that:
@app.callback(
Output("map", "figure"),
[Input("drop1", "value")])
def updategraph(drop1):
newdf = pd.read_excel(rootfolder + drop1)
map = px.line_mapbox(newdf, lat=newdf['lat'], lon=newdf['lon'])
map.update_layout(mapbox_style="open-street-map")
return map
The problem is, my map no update,
any ideas?