That is an interesting idea - in my app usually wanting just to change
the image / tooltip of an existing marker, so actually I would be more
interested in the method of changing the tooltip and images "on the
fly" - I don't necessarily need the whole cache.

The API document appears to suggest that I can change the image, but
any idea how I'd go about changing the tooltip ?

With respect to the memory leak, I take it you can't see any problems
with my example ? If not I think it needs to be looked at by someone
at Google, because this is a recently introduced bug that will cripple
IE6 users of google maps that have refreshing markers.

Cheers
Ian



On May 20, 3:53 pm, Björn Brala <[email protected]> wrote:
> Anyone think that might be handy?
>
> 2009/5/20 Björn Brala <[email protected]>
>
>
>
>
>
> > Because of thing s like this i use a markercache, Instead of removing the
> > marker, i hide and and store it in an object, then change the
> > appearance/location and reload it onto the map.
>
> >http://demo.geostart.nl/geostart.markercache.prototype.js
>
> > Relevant lines:
>
> > 25-32: Removing: If its a point, instead of removeoverlay, push it into the
> > markercache and hide it.
> > 142-181: Adding: If its a point, and the markercache isnt empty, use that
> > point, move it, and change the icon image.
>
> > Perhaps that helps.
>
> > *ponders* perhaps i can just make this a utility library thingie. Shoudlnt
> > be to hard to port. */ponders*
>
> > 2009/5/20 yanimal <[email protected]>
>
> >> Hi there,
>
> >> I am having issues with fairly severe memory leaks in IE6 on XP Pro
> >> and Win2003. I have created a test page to demonstrate the problem :
>
> >>http://www.yanimal.co.uk/index.htm
>
> >> This basically loads 225 markers onto the map, and then removes them
> >> and adds a new set of 225 every 5 seconds. I realise this is an
> >> extreme example, but it demonstrates quickly a problem I am having
> >> over a longer period of time.
>
> >> Symptoms : in IE6 my memory usage goes up by 15-20Mb every 5 seconds
> >> (i.e. every time the markers are refreshed). In Firefox 3.0.10 it is
> >> more like 2Mb.
> >> This occurs using v2.156 onwards. Previous to this, the memory leak
> >> (whilst still present) is nowhere near as severe. I have the same page
> >> running version 2.140 for comparison :
>
> >>http://www.yanimal.co.uk/index140.htm
>
> >> This leaks about 2Mb each time
>
> >> I'm convinced I'm doing something fairly basic wrong - but I can't see
> >> what it is...
>
> >> Cheers
> >> Ian
>
> > --
> > Bjorn Brala
> > ----------------
> >www.GeoStart.nl/english/- Google maps - Swis Webdesign
> > twitter.com/bbrala
>
> --
> Bjorn Brala
> ----------------www.GeoStart.nl/english/- Google maps - Swis Webdesign
> twitter.com/bbrala- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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