Overlay Click Event not Firing on IOS Device

265 views
Skip to first unread message

Chris C

unread,
Nov 4, 2011, 7:22:58 PM11/4/11
to Google Maps JavaScript API v3
http://www.aesculusca.com/custommarker.html

Modified from the overlayview sample. Under Safari or Chrome load the
above sample and then click Add Marker. When the blue dot shows click
on the dot. A popup will show 'Hi'.

This event will not fire in IOS (iPad, iPhone or iPod Touch).

Enoch Lau (Google Employee)

unread,
Nov 4, 2011, 10:09:12 PM11/4/11
to google-map...@googlegroups.com
You've put the div into the overlayImage pane. Try putting it into the overlayMouseTarget pane instead.

Enoch

Chris C

unread,
Nov 6, 2011, 11:26:04 PM11/6/11
to Google Maps JavaScript API v3
That was a good idea but it did not resolve the problem.

Any other thoughts?

On Nov 4, 6:09 pm, "Enoch Lau (Google Employee)" <enoch...@google.com>
wrote:

Chris C

unread,
Nov 7, 2011, 7:54:12 PM11/7/11
to google-map...@googlegroups.com
OK. It turns out this does work.  I was not able to tell because there is a current bug in Mobile Safari on iOS5 that is caching javascript even when you clear the cache.  I had to reset the device to fix another error and just retested this now.
 
panes.overlayMouseTarget.appendChild(div);
 
Fixes the issue.
 
Thanks for the tip.
Reply all
Reply to author
Forward
0 new messages