I am also going to submit this to the JavaScript group, but here is
the .clear(); function in the GeoXML .js I am using.
Does anyone see why running this would stop the JavaScript function
that called it!?
------------------------------------------
GeoXml.prototype.clear=function(idx){
for(var m=0;m<this.overlayman.markers.length;m++)
{this.overlayman.RemoveMarker(this.overlayman.markers[m]);};
this.kml=[new KMLObj("GeoXML","",true,0)];
this.maxtitlewidth=0;
this.styles=[];
this.jsdocs=[];
this.jsonmarks=[];
this.polyset=[];
this.polylines=[];
this.multibounds=[];
this.bounds=new GLatLngBounds();
this.overlayman=new Clusterer(this.map,this);
this.overlayman.rowHeight=20;
$(this.basesidebar).innerHTML="";
this.overlayman.folders.push([]);
this.overlayman.subfolders.push([]);
this.overlayman.folderhtml.push([]);
this.overlayman.folderhtmlast.push(0);
this.overlayman.byname=[];
this.overlayman.byid=[];
this.overlayman.folderBounds.push(new GLatLngBounds());
this.wmscount=0;
};
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---