On May 25, 9:27 am, pete <[email protected]> wrote: > For the purpose of your application, is it a possibility to use > disableDoubleClickZoom = true to prevent this? > > Additionally, you can use iPhone specific events to create > functionality, such as: > > touchstart > touchend > touchmove >
Thanks that's good advice ... I've taken the second option and been successful with a menu that uses the iPhone specific event touchstart. In addition I have an onclick handler (for other browsers) and the touchstart handler calls event.preventDefault() to stop default handling of the touch (including creation of the synthetic click event). The aim of this is make a general purpose dropdown menu that looks the same as the regular MapType dropdown menu. For example it would be used for things like toggling Overlay displays, similar to the "More ..." menu on maps.google.com I guess the main Google map div is listening to the iPhone specific touch and gesture events, but the MapType menu isn't registered for these events, so these events cascade up and are captured by the map event handlers. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
