I am using scattermapbox to update the map from callback. I’d like to add some annotation / text to the map in a fix position. It’s not quite clear from the documentation if this is something that I can use paper
annotations for as layout.annotations | Python | Plotly.
layout = { "autosize": True, "hovermode": "closest", "mapbox": { "accesstoken": MAPBOX_KEY, "bearing": 0, "center": { "lat": layout_lat, "lon": layout_lon }, "pitch": 0, "zoom": zoom, "style": "outdoors", }, "annotations": { "x": 1, "y": 0, "showarrow":False, "text":'Custom annotation text', "xref":'paper', "yref":'paper' }, "margin": { "r": 0, "t": 0, "l": 0, "b": 0, "pad": 0 } }