folium icon indicating copy to clipboard operation
folium copied to clipboard

highlight_color for vector classes

Open yschopfer19 opened this issue 1 year ago • 2 comments

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

yschopfer19 avatar Jan 30 '24 13:01 yschopfer19

Since https://github.com/python-visualization/folium/pull/1959 was merged maybe that can be used for this functionality.

Conengmo avatar Jun 14 '24 15:06 Conengmo

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

hansthen avatar Jul 01 '24 17:07 hansthen