Hoi Sander
Bedankt voor je reactie. Mijn memory leak is v3.8 gerelateerd en verdwijnt als ik er expliciet v3.7 van maak. Misschien een oplossing voor jouw probleem. Verder enclosures etc vermijden, vooral in IE. Google pakt hem echter niet op, we wachten af J Grt Rob Van: [email protected] [mailto:[email protected]] Namens Sander Sturing Verzonden: woensdag 23 mei 2012 14:34 Aan: [email protected] Onderwerp: Re: [Google Maps API v3] Re: Memory leak with setCenter()? Hello Rob, I'm sorry, I never found a solution... Good luck! Greetings from, Sander On Thu, May 17, 2012 at 1:55 AM, robvr <[email protected]> wrote: 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&sh owsearch=true&showpopout=true&parenturl=http://code.google.com/apis/maps/doc umentation/javascript/forum.html#%21searchin/google-maps-js-api-v3/memory$20 leak$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] <mailto:google-maps-js-api-v3%[email protected]> . For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- www.sandersturing.nl -- 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 <mailto:[email protected]> [email protected]. To unsubscribe from this group, send email to <mailto:[email protected]> [email protected]. For more options, visit this group at <http://groups.google.com/group/google-maps-js-api-v3?hl=en> http://groups.google.com/group/google-maps-js-api-v3?hl=en. _____ Geen virus gevonden in dit bericht. Gecontroleerd door AVG - www.avg.com Versie: 2012.0.1913 / Virusdatabase: 2425/5019 - datum van uitgifte: 05/24/12 -- 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.
