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

Using ng-click outside the leaflet directive breaks event listeners.

Open carpiediem opened this issue 9 years ago • 0 comments

I'm trying to have a DIV appear when a marker is clicked, then hide when a button is clicked. I'm able to make it work once, but the ng-click directive on the button (or anywhere else on the page) seems to break the leaflet-specific event listeners. See this demo to see what I mean.

Clicking on the right marker will show and then automatically hide the modal DIV without any problems. Clicking on the left marker leaves the modal open, requiring a button click to close (which prevents any further leaflet events). Clicking the button in the upper right will break the event listeners without involving the modal at all.

Any idea what might be wrong? Might the be a workaround to avoid ng-click in the meantime?

carpiediem avatar Jul 06 '16 15:07 carpiediem