Unable to change the markers style for px.scatter_mapbox

Hi, I am wondering is there a way to change the symbols of the marker from circle to pentagon or “X” or others listed in Marker Style

I am using the “open-street-map” tiles from Mapbox.

Should I use the fig.update_layout?

Hi @Muffinman and welcome to the Plotly community !

Here you can find the list of mapbox symbols - Maki Icons | By Mapbox. I don’t see a pentagon here, but there is X (cross) in the list.

You can simply set the symbol inside your go.Scattermapbox() method

marker = {'size': 20, 'symbol': ["cross"]}
1 Like

Note that you need a mapbox token to use custom icons, even if you use non-mapbox map tiles.