Just to expand on the above, specifically the polygons are added as
follows:

        circles.push(doCircle(point, circleSize, circleColour,
opacity));
        map.addOverlay(circles[circles.length-1]);

And then when I need to redraw the polygons I call this to delete all
the added layers, then recreate all the polygons:

        function clearCircles() {
            map.clearOverlays();
            //GEvent.clearInstanceListeners(map);

            for (var i=0; i<=circleprops.length-1; i++ ){
                delete circles[i];
            }

            delete circles;
            circles = [];
        }

The leak is actually across all browsers. I'm sure its just something
fundamental that I've missed in the clearCircles() function. Memory
useage on the browser keeps increasing every time the circles are
redrawn.

Any suggestions at all please?
--~--~---------~--~----~------------~-------~--~----~
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