Hi,
I'm using leaflet for my mobile app (phonegap 2.5) for iOS and Android.
I'm having quite some trouble being able to listen to touch events ...
The docs only talk about mouseup, down, and in the comments, it says something about touchstart e.g.:
http://leafletjs.com/reference.html#eventsNow I tried
map.on('ontouchstart', function(e) {
alert(e.latlng);
});
and touchstart, etc. but this didn't appear to affect anything.
Also, the mouse-events arent fired on the device.
Any way to listen to touch events?
I have to recalculate some markers after every touching/panning.
Thanks!