You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run add_geojson() function, I can not set customed colors follwing the attribution values in geojson file. For instance, the geojson file contains a attribute, named classification, with the value of ['building','water','road','forest','others']. I want to set different fill color for different value. Is there any solution to make it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
You can use a style callback function. See this example:
leafmap/leafmap/leafmap.py
Line 5786 in d45bdf3