Hi Sander I am having serious memory leaks too. Did you find a solution yet? IF so would you share it?
Grtz Rob Op woensdag 14 december 2011 12:11:48 UTC+1 schreef Sander Sturing het volgende: > > I hope this is not a repost, but I've searched everywhere and couldn't > find a clear fix so far. > > First I just initialize a very simple map (no markers etc.). I have a > script where every couple of seconds I call the setCenter() function like > this: > > latlng = new google.maps.LatLng(56.02508 +random_number(-2, 2), > 2.39525+random_number(-2, 2)); > map.setCenter(latlng); > > Is there any way to clear the memory every time this is called. It is > called by the setInterval function and refreshing the whole page is not an > option. I've tried re-initializing the whole map everytime instead of just > changing position but that doesn't seem to work either. > Thanks in advance! > > *BTW, the whole script is a little bit more advanced with AJAX-calls > which places markers with infoboxes. > But after a couple of time debugging that script it seems to be stuck on > the setCenter() part. > > I saw this > demo<https://google-maps-js-api-v3.googlegroups.com/attach/2004769ab80fa030/map_demo.html?view=1&part=4>in > another > post<https://groups.google.com/forum/embed/?place=forum/google-maps-js-api-v3&showsearch=true&showpopout=true&parenturl=http://code.google.com/apis/maps/documentation/javascript/forum.html#%21searchin/google-maps-js-api-v3/memory$20leak$20pan/google-maps-js-api-v3/jzz7gtIH0yA/b3167HZ6-wMJ>and > that is basically the same script as I'm describing at the top. (random > position-changing on a single map).* > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/xTNqjnnlYAQJ. 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.
