python-visualization / branca

This library is a spinoff from folium, that would host the non-map-specific features.
https://python-visualization.github.io/branca/
MIT License
112 stars 64 forks source link

ColorMaps do not support alpha #63

Closed BalthasarSchachtner closed 1 year ago

BalthasarSchachtner commented 5 years ago

Dear all,

I encountered that the Colormap does not support rendering of the alpha values of the colors supplied. Is there a specific reason why the alpha channel is dropped?

I did a quick hack to propagate the alpha values to the rendering and it seems to work in my setup: https://github.com/BalthasarSchachtner/branca/commit/ac708586165f055c0d557635a716d51c8e720428

If you are interested in this feature, I can try to clean that up and to do a proper pull request. Thanks for your work!

ocefpaf commented 5 years ago

Sure!

Conengmo commented 1 year ago

Can be closed since we merged https://github.com/python-visualization/branca/pull/64