angular-leaflet-directive
angular-leaflet-directive copied to clipboard
leafletDirectiveMarker.click breaks after first event
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
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").
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".
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?