folium icon indicating copy to clipboard operation
folium copied to clipboard

fix __geo_interface__ styling

Open ocefpaf opened this issue 1 year ago • 1 comments

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_function in a loop.

ocefpaf avatar Apr 19 '24 17:04 ocefpaf

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.

Screenshot from 2024-04-19 19-28-18

ocefpaf avatar Apr 19 '24 17:04 ocefpaf

@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?

ocefpaf avatar Apr 23 '24 18:04 ocefpaf