Before making your new AJAX call, check

if (!map.getInfoWindow().isHidden()) {
  return;
}

Also, you might want to create a 'buffer' around the visible map, so
that you don't need to refresh on very small moves.
See how I do that in the function doSearch(), in this page:
http://maps.forum.nu/server_side_clusterer/

--
Marcelo - http://maps.forum.nu
--




On Feb 4, 9:48 pm, Denis <[email protected]> wrote:
> Hi all,
>
> I have an issue I'm sure people have come up against before but I
> can't seem to phrase it correctly to find a solution/post for it.
>
> I have built an application that pulls from a DB to a handler and then
> sends a JSON array to my javaScript. I execute the AJAX call to the
> handler on moveend.
>
> My problem is that when an infoWindow near an edge is clicked the
> window opens and then moves if the window is now fully displayed on
> the map to allow it to do so. This causes my AJAX to get called and
> when the pins get loaded the infoWindow closes.
>
> I have been thinking about it for a while and can't think of a way to
> handle this? Can anyone help?
>
> P.S. I won't have a link till tomorrow for my application, hopefully I
> have gotten my point across well enough in writting.
>
> Thanks
> Denis
--~--~---------~--~----~------------~-------~--~----~
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