Dash Leaflet: custom shapes or icons with color

Hello,

I want to plot points on a leaflet map and customize the shape AND color.

The shape will signify the type of object, and the color will be a gradient representing the value at that location.

Right now, I can do either, but not both.

I can use an icon to represent the type of object, OR I can draw a circle and set the color per-item.

Is there a way to do both?

For example, can I make white icons and then set their fill color dynamically, for example?

Or is there some way I can customize the shapes beyond a circle?

I know there are polygons, but I would need to come up with a dozen shapes.

Thanks for any tips here.

Its not easy, but its possible. Youll have to look into the edit control, you can check out my dash leaflet fork as i modified the edit control system to work with custom colors, anomations and emojis :wink: