"It looks like you are not clearing your "click" event listeners. Each
cycle adds another "click" event listener to the marker."

- I thought that could be the issue too... but even If I totally remove
the "click" event listeners, IE is still taking more and more memory:
http://www.canamgroup.ws/GM.nsf/Map4d?OpenPage

I thought that by removing the markers from the map (.setMap(null) and
empty my array), all event listeners would be cleared. I read this here:
http://www.mail-archive.com/[email protected]/msg04733.html

"I would let Google do the "clearOverlays" work for you in case the API
has to clean up its own references."

- What do you mean by that? I'm not sure I understand how to do that?

" I would use a new overlaysArray rather than reuse the old
overlaysArray. It will give the garbage collector a chance to clean up
remaining references."

- I'll try this and get back to you.

Thanks a lot for your help, I really appreciated.

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

Reply via email to