Dash Leaflet: Color gradient for map icons?

Hello,

I’m using leaflet to plot points on a map.

I’m currently using this approach to draw icons:

dfGeo['icon'] = 'https://maps.google.com/mapfiles/kml/paddle/grn-blank.png'

geoJSON['props']['data'] = dfGeo.__geo_interface__

It’s not actually important to me to draw this exact icon. It could just be a small circle.

But I would like to do is set the color of the icon / circle / marker based on the value of one of the columns in the dataframe.

Is there a straightforward way to do this with leaflet?