Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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");});
— asked October 26th 2010 by Pasha Tsipinio
  • click
  • iphone
  • mapview
0 Comments

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.

    — answered October 26th 2010 by John McKnight
    permalink
    1 Comment
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.