folium
folium copied to clipboard
fix __geo_interface__ styling
Closes https://github.com/python-visualization/folium/issues/1932.
- [X] Fixes the geopandas (or any
__geo_interface__object) styling regression. - [x] Amend the docs with a CAVEAT regarding Late Binding Closures when using
style_functionin a loop.
This one fixes the geopandas issue but I need to amend the docs for the pitfalls in the loop case and I also need to check if my simplistic solution is good enough and doesn't clash with the current styling options we have.
@Conengmo and @hansthen I'm planning on a new release but I guess we should also try to get https://github.com/python-visualization/folium/pull/1903 (and maybe others) in before that?