Bug adding click events when map div is not visible

16 views
Skip to first unread message

m@uce

unread,
Mar 2, 2011, 6:12:42 PM3/2/11
to google-map...@googlegroups.com
I'm using the V3 Maps api within Sencha touch and just noticed a problem. When I add clickable markers to my map while the map is not visible(div is hidden in a tab panel control), the click events to not fire. I worked around the problem by making the markers draggable, which then allowed the click events to pass through as well. I set a timer to setdraggable on the new markers to false, a second after the map had finished rendering.

Oddly, generating the markers via the same delayed timing mechanism still would not allow the markers to respond to click events for whatever reason. Seems like a bug in the API.

m@uce

unread,
Mar 2, 2011, 6:14:17 PM3/2/11
to google-map...@googlegroups.com
Oops. Forgot to mention that this behavior only happens on the Iphone and Android mobile browsers. The same page opened in any other browser, including Safari for the PC would not duplicate the problem.

Chris C

unread,
Mar 6, 2011, 12:52:59 AM3/6/11
to Google Maps JavaScript API v3
Thank you, thank you, thank you. I have been struggling with this all
day long.

I think its a new bug in the March 2nd addition. It happens on the
Windows version of Safari too. I will post a problem report and list
this item and my entry with it.
Reply all
Reply to author
Forward
0 new messages