> I need the double click functionality too (for the polylines but it's
> the same discussion). I thought of the scheme you suggested too and
> tried to implement it but it does not seem to work. What happens is,
> in the first click it is possible to catch the click on the polygon
> and get the time and location of the click. But if the user clicks
> again and it is (rightly) interpreted as a double click. The second
> click event is not fired on the polygon (or polyline) because now the
> event is a double click, which means the double click event is created
> and is handled by the map (which zooms in in my case).

Do what Andrew says;
First click - set up a setTimeout to execute your action later (open
infowindow).
Doubleclick detected - cancel the setTimeout so that infowindow open
will now not happen.  Then carry on to do whatever it was you wanted
(zoom).   You need a listener for the map doubleclick so that you can
do the cancel.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to