Folium Style_Function Parameters – Explanation

foliumleafletpythonstyle

I'm trying to do a uniform style for each polygon, but I want to know further about what I can do with Python library Folium Style_function. What can I put in the style variable? Where are the resources that I can look up to?

style = {'fillColor': '#f5f5f5', 'lineColor': '#ffffbf'}    
polygon = folium.GeoJson(gjson, style_function = lambda x: style).add_to(m)

I know that the style variable should be a dictionary, and I looked at the documentation. It seems like every resource that I have encountered has been trivial from other topics.

Best Answer

The Geojson layer's style_function mimics the style function from Leaflet.js. Here are all the parameters.

Related Question