Visualizzazione dei risultati da 1 a 3 su 3

Discussione: infowindow su link

  1. #1
    Utente di HTML.it
    Registrato dal
    Jun 2005
    Messaggi
    2,125

    infowindow su link

    Vorrei far apparirer una infowindow tramite dei link esterni alla mappa.

    E' possibile?



    Codice PHP:
        htmlText="testo";

     
    marker.infoWindow = new google.maps.InfoWindow({contenthtmlText});

    /* now inside your initialise function */

    google.maps.event.addDomListener(marker'click', function () {
        
    // where I have added .html to the marker object.
        
        
    if (infowindowprec) {infowindowprec.close(); //chiude la precedente infowindow
                
    }
         
                
    this.infoWindow.open(speedTest.map,this);  //apre la nuova infowindow
                //this.infoWindow.setPosition(myLatlng);
                
    infowindowprec this.infoWindow//assegna l'attuale infowindow alla variabile globale
    }); 

    se applico la infowindows al marker tutto funziona.

    Ma se invece al posto del marker provo a metterla su un link

    Codice PHP:


       
    var title document.createElement('A');

        
    htmlText="testo";

     
    title.infoWindow = new google.maps.InfoWindow({contenthtmlText});

    /* now inside your initialise function */

    google.maps.event.addDomListener(title 'click', function () {
        
    // where I have added .html to the marker object.
        
        
    if (infowindowprec) {infowindowprec.close(); //chiude la precedente infowindow
                
    }
         
                
    this.infoWindow.open(speedTest.map,this);  //apre la nuova infowindow
                //this.infoWindow.setPosition(myLatlng);
                
    infowindowprec this.infoWindow//assegna l'attuale infowindow alla variabile globale
    }); 
    non funziona nulla. Come posso ovviare?

  2. #2
    Utente di HTML.it
    Registrato dal
    Jun 2005
    Messaggi
    2,125
    up

  3. #3
    Utente di HTML.it
    Registrato dal
    Jun 2005
    Messaggi
    2,125
    nessuno

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.