1

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.

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.