On Dec 2, 3:17 pm, Chad Killingsworth <[email protected]> wrote: > I would highly suggest that instead of removing and re-adding the > poly, or manually setting the path, you instead make the initial path > array an MVCArray. Then as you change the points in the array, the > polygon will automatically update. > > Seehttp://code.google.com/apis/maps/documentation/javascript/reference.h... > > Chad Killingsworth
Or try using a standard JavaScript array instead of a MVC array. I suspect MVC arrays have a whole bunch of backward / forward links to facilitate expansion / contraction / navigation of the array. It may contain many small memory fragments. Both conditions will frustrate the garbage collector. I single linear chunk of memory is much less likely to cause leaks. Releasing the entire array in one shot will also help the garbage collector. I am unable to see your "Method 1", "Method 2", "Method 3" links. Could you repost ? -- 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.
