Scattermapbox marker symbol

Hi @bhowey.

There are a few forum posts which indicate, that you need a mapbox token for the use of marker icons even if you use a map style which would not require a token.

Once you have the token, you should be able to use the icons. However, I did not manage to make this work with some of the icons provided, for example โ€œcrossโ€.

The โ€œdog-parkโ€ icon works, for example:

import plotly.graph_objects as go

token = open("mapbox_token.txt").read()
lats = [52.370216]
lons = [4.895168]


fig = go.Figure(
    data=go.Scattermapbox(
        lat=lats,
        lon=lons,
        mode='markers',
        hovertext=['Amsterdam'],  
        hoverinfo='text',                 
    ),
    layout=go.Layout(
        height=900,
        mapbox = dict(center= dict(lat=52.370216, lon=4.895168),            
            accesstoken=token,
            zoom=15,
            style="streets"
        )
    )
)

fig.update_traces(marker={"size": 30, "symbol": "dog-park"})