ui-leaflet icon indicating copy to clipboard operation
ui-leaflet copied to clipboard

How to disable the dragging and zoom mouse events, for a nested panel in the <leaflet> tag - which is a custom component

Open twoheadedmona opened this issue 9 years ago • 3 comments

I noticed on popups and layer controls the zoom and drag property are disabled, so I was wondering if there is any way that I can apply those same functions to a nested sidenav component from some div container.

The sidenav and the leaflet directive reside in the same controller. Can you please show me how to do it?

twoheadedmona avatar Aug 30 '16 13:08 twoheadedmona

Please check documentation for mouse events, You maybe can use the preventDefault and stopProgation methods.

elesdoar avatar Aug 30 '16 15:08 elesdoar

Do you mean the angulari ui-leaflet documentation for mouse events?

twoheadedmona avatar Aug 31 '16 07:08 twoheadedmona

No, I'm referring to DOM events.

https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent

Or leaflet events utils http://leafletjs.com/reference.html#events http://leafletjs.com/reference.html#domevent

elesdoar avatar Sep 05 '16 17:09 elesdoar