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); });
- Touch the map away from a marker. Nothing is logged.
- Touch a marker. Details of the marker and it's respective annotation are logged.
- Touch the annotation bubble. Nothing is logged.
- 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); });
- Touch a marker. Details of the marker and it's respective annotation are logged.
- Touch the annotation buble. Nothing is logged.
Why can't I attach an event to the annotation bubble? Tested using ios7.