Is there any way do this with plotly express scatter_mapbox? I might be doing too much here, but I’d like to have an animated scatter_mapbox with labels for each of the dots as they move around the map. If I leave out text=, it works fine. If I turn on text=, the animation doesn’t work, (or for some columns, I get a blank figure).
#This makes a map without text labels, obviously, and animation works fine.
fig=px.scatter_mapbox(lat='lat',lon='lon',data_frame=df_teams,mapbox_style='carto-positron',size='Size',
animation_frame='Timestep_str',color='Team',center={'lon':x_ctr,'lat':y_ctr},zoom=6,
labels={'Timestep_str':'Date'},hover_data=['Team'],
animation_group='Team')
#This makes a map without text labels or animation.
fig=px.scatter_mapbox(lat='lat',lon='lon',data_frame=df_teams,mapbox_style='carto-positron',size='Size',
animation_frame='Timestep_str',color='Team',center={'lon':x_ctr,'lat':y_ctr},zoom=6,
labels={'Timestep_str':'Date'},hover_data=['Team'],
animation_group='Team',
text='Team')
#This is a blank map
fig=px.scatter_mapbox(lat='lat',lon='lon',data_frame=df_teams,mapbox_style='carto-positron',size='Size',
animation_frame='Timestep_str',color='Team',center={'lon':x_ctr,'lat':y_ctr},zoom=6,
labels={'Timestep_str':'Date'},hover_data=['Team'],
animation_group='Team',
text='Progress')