for the animation you are looking for you can use the intervall component of dash to fire a callback every other intervall of time https://dash.plot.ly/live-updates
for the modification of the points in the map just return a dictionary with the new data component to the mapbox you are displaying {‘data’:[]} the output of the callback should look like this Output(‘map-figure’, ‘figure’),
the function can look something like this @app.callback(Output(‘map’, ‘figure’),
[Input(‘interval-component’, ‘n_intervals’)])
def update_map(n):
do_stuff()
return {data:[]}