On Oct 26, 8:10 pm, Jake <[email protected]> wrote:
>
> The user can still use the pan tool with an info window open. So, that
> does not disambiguate the two cases.
In that case, you could write your own pan control which triggers
custom events. You would then have something like the following, and
infoWindow state is immaterial.
dragend: update data
panclick: set a global variable to indicate your control was clicked
moveend: if panclick-flag, then update data and clear flag;
else wasn't done by user, so don't update data.
You may be able to implement this by defining your custom controls as
completely transparent and positioning them on top of the Google
control (rather than designing all the graphics from scratch). I've
not tried that; I'm not sure which would actually be on top, or
whether the click propagates downwards.
You mention the Google Maps site. Unfortunately not everything which
Google have coded for their own site has made it into the API.
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---