View Full Version : [CLOSED] Google Maps API 'click' event not fired in Android/iOS

17 Jan 2012, 3:00 AM
Sencha Touch version tested:

only default ext-all.css

Platform tested against:

iOS 5.x
Android 2.3.4


Click events don't work with Sencha on Google Maps in Android/iOS.

Test Case:

How to attach an event to marker:

google.maps.event.addListener(marker, 'click', function() { alert('Click event!'); });

See this URL : http://code.google.com/apis/maps/documentation/javascript/events.html#EventListeners

Steps to reproduce the problem:

Navigate in iOS/Android browser to http://dev.sencha.com/deploy/touch/examples/map/
Try to click the red pin

The result that was expected:

popup with "Sencha Touch HQ" appears above the pin

The result that occurs instead:

nothing happens

Screenshot or Video:


Debugging already done:


Possible fix:

use Sencha with desktop version of Chrome/Safari
not use Sencha, e.g. try to click pins on http://code.google.com/apis/maps/documentation/javascript/examples/event-closure.html in Android/iOS, they work fine

17 Jan 2012, 7:44 AM
This has been fixed in Sencha Touch 2

17 Jan 2012, 8:06 AM
Where could I find how exactly it was fixed? I prefer not to switch to Sencha 2 yet.

27 Jan 2012, 8:54 AM
To save someone else the extra poking around.. just change 'click' to 'mousedown', per http://www.sencha.com/forum/showthread.php?108321-Map-Marker-onClick