something like
this.openwindow = function(i) { if (infowindows[i] != null) { for ( var n in this.nodes ) { marker[n].infowindow.close(); } infowindows[i].open(this.map, markers[i]); } }
code hasn't been tested though...
something like
this.openwindow = function(i) {
marker[ n].infowindow. close() ;
infowindows[ i].open( this.map, markers[i]);
if (infowindows[i] != null) {
for ( var n in this.nodes )
{
}
}
}
code hasn't been tested though...