Mmm actually, it doesn't.

The problem happens when I do:

1) Move the map, so a marker is on the edge of the map
2) Click on a marker, which then sets a 2 cookies (which are used
later)
3) The markers are all cleared, and when this happens - its runs the
following listener:

GEvent.addListener(map,"infowindowclose", function() {

(which clears the cookies, even when it shouldn't)

Is there any way around this?

TIA

Andy


On Mar 18, 9:51 am, youradds <[email protected]> wrote:
> Hi,
>
> Working great now =)
>
> The one thing I'm trying to work out, is how I can check when an
> openInfoWindowHtml is clicked to close it? When that happens, I need
> to clear the cookie (otherwise it will keep centering to the same
> point - even once its been closed by the user =))
>
> I had a look around on google, but couldn't seem to find the right
> action to do this :(
>
> TIA
>
> Andy
>
> On Mar 18, 9:18 am, Rossko <[email protected]> wrote:
>
> > > ..but I'm strugging with how I actually get the content from the
> > > returned AJAX call?
>
> > It's not about whether you used named functions or anonymous functions
> > in the callback, you've seized on the wrong thing.
>
> > You cannot get the content from the AJAX call (in any normal
> > circumstance).  If you want to do something with the content, do it
> > inside the callback function.  If you want to do something after
> > you've processed the AJAX content, do it at the end of the callback.
>
>

-- 
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