Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Map Annotation Selection Broken

$
0
0

Within a map view, detecting click events on annotation bubbles appears to be impossible. Example:

Attach an event to the map view with the following method: $.mapItem.addEventListener('click', function(e){ console.log('----'); console.log(e); });

  1. Touch the map away from a marker. Nothing is logged.
  2. Touch a marker. Details of the marker and it's respective annotation are logged.
  3. Touch the annotation bubble. Nothing is logged.
  4. Touch the map away from a marker. Details of the previously selected annotation are logged.

Attach an event to the marker with the following method: $.marker.addEventListener('click', function(e){ console.log(e); });

  1. Touch a marker. Details of the marker and it's respective annotation are logged.
  2. Touch the annotation buble. Nothing is logged.

Why can't I attach an event to the annotation bubble? Tested using ios7.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>