Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. max103
    3. Post
    M

    max103

    @max103

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 1
    • Post 4
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    Età 19
    0
    Reputazione
    4
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da max103

    • RE: Google Maps da indirizzo a LAT LONG

      grande, funziona perfettamente

      grazie

      postato in Coding
      M
      max103
    • RE: Google Maps da indirizzo a LAT LONG

      mi da questo errore:
      geocoder is not defined
      a questa riga:
      valore = geocoder.getLatLng(address,

      <script type="text/javascript">
      function initialize() 
      {
          var fenwayPark = new GLatLng(showAddress("Via Monte Napoleone, 33, 20121 Milano"));
          panoramaOptions = { latlng:fenwayPark };
          myPano = new GStreetviewPanorama(document.getElementById("pano"), panoramaOptions);
          GEvent.addListener(myPano, "error", handleNoFlash);
      }
      
      function  showAddress(address){
       var valore;
          valore = geocoder.getLatLng(address,
          function(point){
              if (!point) {
                  return 0;
                } else {
                    alert( 'Latitudine = ' + point.lat() + ' Longitudine = ' + point.lng() );          
                  return 1;
                }
          });
          return valore;
      }  
      </script>
      
      
      postato in Coding
      M
      max103
    • RE: Google Maps da indirizzo a LAT LONG

      credo di avere io quel codice

      ma non conoscendo JS non riesco a implementarlo con il mio codice attuale

      provo a postarli entrambi

      il totale del codice visualizza una mappa StreetView

      il mio (funziona ma solo con LAT LONG)

          function initialize() {
                          
            var fenwayPark = new GLatLng(651651,651651);
            panoramaOptions = { latlng:fenwayPark };
            myPano = new GStreetviewPanorama(document.getElementById("pano"), panoramaOptions);
            GEvent.addListener(myPano, "error", handleNoFlash);
          }
      
      ```quello che ho trovato che dovrebbe ricavare LAT LONG dall'indirizzo testuale
      

      function showAddress(address){
      var valore;
      valore = geocoder.getLatLng(address,
      function(point){
      if (!point) {
      return 0;
      } else {
      alert( 'Latitudine = ' + point.lat() + ' Longitudine = ' + point.lng() );
      return 1;
      }
      });
      return valore;
      }

      
      ejohn.org/apps/gaddress/
      
      ma come prima, non riesco a unire questo codice con il mio
      postato in Coding
      M
      max103
    • Google Maps da indirizzo a LAT LONG

      ho un codice JS per visualizzare una mappa di Google

      il codice che allego funziona, impostando le coordinate LAT e LONG

      io vorrei adattarlo per funzionare con l'indirizzo al posto delle coordinate LAT e LONG

      
          function initialize() {
            var fenwayPark = new GLatLng(6165151,1651651);
            panoramaOptions = { latlng:fenwayPark };
            myPano = new GStreetviewPanorama(document.getElementById("pano"), panoramaOptions);
            GEvent.addListener(myPano, "error", handleNoFlash);
          }
      
      

      come posso trasformarlo per funzionare con l'indirizzo invece delle coordinate LAT e LONG?

      postato in Coding
      M
      max103