map click does not work
Why click does not work on MapView. I used iOS 4.1 and Ti SDK 1.4.1.1
mapView = Ti.Map.createView({
mapType: Ti.Map.STANDARD_TYPE,
region: region,
animate: true,
regionFit: true,
userLocation: false,
annotations: points
});
mapView.addEventListener("click",function(e){alert("click");});
1 Answer
-
Accepted Answer
You only get a click event on a mapview when the user touches an annotation. You will not get them for clicks on the map itself.