Search code examples
leafletangular-leaflet-directive

Stop click propagation on a custom div within a leaflet map


I have a custom div (with settings) within a map. I would like click event not to propagate to map when a user clicks on the div. How could one achieve such behavior?

Leaflet version 1.0.


Solution

  • See the documentation for L.DomEvent.stopPropagation().