Custom markers in mapbox map, is it possible?

If you want to use a plotly figure, @RenaudLN curated an elegant example on how this can be done,

As you note, another option would be to use dash-leaflet. If you go down that path, you can use the Marker component with custom icon(s),

Marker (dash-leaflet.com)

or the GeoJSON component for more performant rendering (best when you have > 100 markers),

GeojsonTutorial (dash-leaflet.com)

2 Likes