in realta ci siamo quasi

la riga
speedTest.infos[0]=speedTest.infoWindow;

non funzionava cosi


speedTest.infos[0] is null

allora ho messo speedTest.infos[0]=marker2.infoWindow;

e apre le finestre con i vari contenuti ad ogni click su ogni segnalino ma non si chiudono


nella lettura che ho postato prima ho trovato un post che scrive a riguardo :

infos[0].set(“marker”,null); just detaches the last opened info-window from it’s marker,
That’s necessary before removing the reference to the last opened info-window
(once the handle is gone, it just can’t be accessed so easy anymore).



scusate

posto anche il codice per chiudere la finestra...forse e' il prob...

Codice PHP:
speedTest.closeInfos = function(){
 
   if(
speedTest.infos.length 0){
 
      
/* detach the info-window from the marker */
      
speedTest.infos[0].set("marker2",null);
 
      
/* and close it */
      
speedTest.infos[0].close();
 
      
/* blank the array */
     
speedTest.infos.length 0;
   }