It seems that the markers are in the memory... Is there a way to remove the markers from the memory so it can reload...
The reason I'm doing this is because I'm worried that if I don't remove the markers from the memory and there is allot of markers the browser will slow down. And even crash. On Sat, May 1, 2010 at 2:32 PM, Jean-Nicolas Boulay Desjardins < [email protected]> wrote: > Now it works in part... > > http://jean-nicolas.name/labs/google_maps/google_map_v3_2.html > > <http://jean-nicolas.name/labs/google_maps/google_map_v3_2.html>The > problem is that when the markers are removed (setMap(null)) they can't be > shown again even when they are downloaded a second time... > > Warning I'm using console in my code... > > > On Fri, Apr 30, 2010 at 7:06 PM, William <[email protected]> wrote: > >> On May 1, 1:01 am, Jean-Nicolas Boulay Desjardins >> <[email protected]> wrote: >> > >> > It says Uncaught TypeError: Object #<an Object> has no method 'setMap' >> > >> >> the code iterates through all elements of markers by this loop: >> >> >> for (i in markers) { >> >> this will return everything in markers, including the $family object >> added by Mootools, which isn't a marker and doesn't have the setMap >> method. >> >> Mootools makes changes to native javascript objects. For example, it >> contains this code which adds the $family object to the following >> javascript classes: >> >> var >> >> a={Array:Array,Date:Date,Function:Function,Number:Number,RegExp:RegExp,String:String}; >> for(var h in a){new Native({name:h,initialize:a[h],protect:true}); >> ... >> var Native=function(k){ >> ... >> var f=k.initialize; >> var d=f||i; >> d.$family={name:"native"}; >> >> -- >> 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]<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. >> >> > > > -- > Name / Nom: Boulay Desjardins, Jean-Nicolas > Website / Site Web: www.jeannicolas.com > -- Name / Nom: Boulay Desjardins, Jean-Nicolas Website / Site Web: www.jeannicolas.com -- 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.
