Update lines in mapbox with dropdown


I have a map defined like that:

map = px.line_mapbox(df, lat=df['lat'], lon=df['lon'])
dcc.Graph(id="map", figure = map)

Then when i try to update the dataframe to use new data with dropdown like that:

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'])
return map

The problem is, my map no update,

any ideas?

Any ideas?
Thx so much!