Skip to main content
edited title
Link

Highlight feature below mouse-overed track Enable both function on click and highlight on hover in LeafletLeaflet+cartoDB

deleted 109 characters in body
Source Link

Currently, on http://velo300.free.fr/debug,

first i set a sidebar toggle on feature click using leaflet-sidebar plugin. It works perfectly.

Then i tried to sethighlights on 'featureOver' creating a function to highlightwhite new feature on featureOver using this exampletop of mouse-overed feature.

Problem: this event works but it prevent featureclicki need also to work with 'featureclick' for another function.

How can i manage these events both: toggleto create this new white feature below the sidebar clicking on amouse-overed feature highlightedand not on top?

Other relevent solution: how to use setcartoCSS() wihtout redraw rhe whole layer?

Currently, on http://velo300.free.fr/debug,

first i set a sidebar toggle on feature click using leaflet-sidebar plugin. It works perfectly.

Then i tried to set a function to highlight feature on featureOver using this example.

Problem: this event works but it prevent featureclick.

How can i manage these events both: toggle the sidebar clicking on a feature highlighted?

Currently, on http://velo300.free.fr/debug,

feature highlights on 'featureOver' creating a white new feature on top of mouse-overed feature.

Problem: i need also to work with 'featureclick' for another function.

How can i manage to create this new white feature below the mouse-overed feature and not on top?

Other relevent solution: how to use setcartoCSS() wihtout redraw rhe whole layer?

edited title
Link

FeatureOver / FeatureClick event conflict Highlight feature below mouse-overed track in Leaflet

deleted 40 characters in body
Source Link
PolyGeo
  • 65.5k
  • 29
  • 115
  • 353
Loading
Source Link
Loading