angular-leaflet-directive icon indicating copy to clipboard operation
angular-leaflet-directive copied to clipboard

leafletDirectiveMarker.click breaks after first event

Open carpiediem opened this issue 9 years ago • 3 comments

I added an event listener to a map marker and it seems to work perfectly the first time it's clicked. But after that, it no longer responds to the left mouse button. Strangely, it continues to emit if I click the right mouse button. Any idea what's going on here?

http://play.ionic.io/app/ea988541dbfb

carpiediem avatar Jul 03 '16 01:07 carpiediem

I had the same problem. Finally I solved surrounding the map with a div with data-tap-disabled="true", as stated here: https://forum.ionicframework.com/t/click-on-a-marker-of-leafletmap-not-working/4378/5. Be aware of the right syntax ("disabled", not "disable").

FAndrea avatar Jul 29 '16 08:07 FAndrea

Thanks for you comment FAndrea! I spent a few days on this issue and was thrown for a loop because of a few discussions online that used data-tap-disable instead of "disabled".

ghost avatar Oct 24 '16 17:10 ghost

Big thanks; I've updated my demo to show your solution. I'm not sure what to do with this issue, though. Should the documentation be updated before it's closed?

carpiediem avatar Oct 25 '16 01:10 carpiediem