0

I'm using the angular-leaflet-directive within Ionic Framework. I set up a listener on a map marker and it works on the first click after the page is loaded. After that, though, it stops responding to the left mouse button (but confusingly still responds to the right mouse button).

Here's a demo. Any idea what's wrong?

Narm
  • 10,677
  • 5
  • 41
  • 54
carpiediem
  • 1,918
  • 22
  • 41
  • The map zoom controls are also no longer responding to click after the modal is shown once. So you may have something that prevents (left) click event from firing in Leaflet. – ghybs Jul 03 '16 at 18:07
  • It seems to be the ng-click directive that triggers the error. I've tried moving it to different elements, or switching to ng-mousedown, but the Leaflet event listeners always break after it's triggered. – carpiediem Jul 06 '16 at 15:31

1 Answers1

1

I've got the same issue, use data-tap-disabled="true" in the tag leaflet worked to me.

zajonc
  • 1,935
  • 5
  • 20
  • 25
  • My demo is dead (for some reason) and I wound up switching to angular-google-maps instead, so I don't have an easy way to confirm this, but I'll go ahead and mark it as the answer. Thanks for sharing! – carpiediem Aug 02 '16 at 15:40