folium
folium copied to clipboard
highlight_color for vector classes
The implementation introduces the possibility to highlight polylines, polygons, rectangles, circles, and circle markers if a tooltip is shown. Changes Made:
- Users can now specify the "highlight_color" when creating a vector layer.
- When a user hovers over the vector layer and a tooltip is displayed, the vector layer then sets its color to the highlight color.
Related Issue: #1763
Since https://github.com/python-visualization/folium/pull/1959 was merged maybe that can be used for this functionality.
@yschopfer19 By now we implemented #1959, which allows users to add javascript event handlers. It allows users to do what you proposed in your PR.
If #1959 does not serve your need, please let us know.