I am trying to add a geojson layer with interactive functionality to my leaflet map. I am mostly using this (dated)blog: http://palewi.re/posts/2012/03/26/leaflet-recipe-hover-events-features-and-polygons/
My result to date:
- it changes the style of a selected feature on mouseclick
- a popup come up on mouseclick
- it changes the style back on mouseover
Could anybody help me with this question:
How can I change back the style on the next mouseclick instead of mouseover?