Skip to content

Conversation

@Conengmo
Copy link
Member

@Conengmo Conengmo commented Jan 22, 2023

Fixes python-visualization/folium#1571 and python-visualization/folium#1280, when we also merge python-visualization/folium#1708.

Users expect to be able to pass a branca ColorMap to write_png and image_to_url. Make this possible by testing for the correct type and using the rgba_floats_tuple methods if it's a branca ColorMap. Add tests.

Also include changes from folium to the same function so we can remove the duplicate code from folium.

and make it have parity with the version in Folium, so we can remove the code there.
@Conengmo Conengmo merged commit 4c5bfb1 into python-visualization:main Jan 24, 2023
@Conengmo Conengmo deleted the colormap-in-write-png branch January 24, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue using branca colormap with folium.raster_layers.ImageOverlay

1 participant