IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JavaScript Discussion :

google map api


Sujet :

JavaScript

  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Novembre 2007
    Messages
    381
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : Maroc

    Informations forums :
    Inscription : Novembre 2007
    Messages : 381
    Points : 180
    Points
    180
    Par défaut google map api
    Salut,
    Est ce que quelqu'un a un script pour google map api avec possibilité de changer l'adresse dynamiquement? J'utilise ASP.
    Merci pour votre aide.

  2. #2
    Membre habitué Avatar de Capt. Flame
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    222
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Septembre 2005
    Messages : 222
    Points : 196
    Points
    196
    Par défaut
    Qu'est-ce que tu veux faire exactement?
    - Capt.

    Proverbe Shadok:
    S'il n'y a pas de solutions, il n'y a pas de problèmes

  3. #3
    Membre à l'essai
    Profil pro
    Développeur Web
    Inscrit en
    Mai 2006
    Messages
    13
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Mai 2006
    Messages : 13
    Points : 14
    Points
    14
    Par défaut
    Comme tu as été capable de poster ce message. Tu l'es surement pour taper google map api dans google, non ?

    Et en plus, tu as même une documentation à ta disposition (Docs).

  4. #4
    Membre habitué Avatar de Capt. Flame
    Profil pro
    Inscrit en
    Septembre 2005
    Messages
    222
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Septembre 2005
    Messages : 222
    Points : 196
    Points
    196
    Par défaut
    Ouf... C'est pas très diplomate ça...
    - Capt.

    Proverbe Shadok:
    S'il n'y a pas de solutions, il n'y a pas de problèmes

  5. #5
    Membre habitué
    Profil pro
    Inscrit en
    Novembre 2007
    Messages
    381
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : Maroc

    Informations forums :
    Inscription : Novembre 2007
    Messages : 381
    Points : 180
    Points
    180
    Par défaut
    Je veux un script comme ce genre parce que celui la ne marche plus.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title><%=request.QueryString("adresse")%></title>
        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAfiQdpJ9supzq6oNEwKLw7RSekOGvW7h90KIhQhGh9SFbJCi9HRTWHZxnsssuQjLD3HC-uUOhcZayIA"
          type="text/javascript"></script>
        <script type="text/javascript">
     
        //<![CDATA[
     
        function load() {
          if (GBrowserIsCompatible()) {
            var map = new GMap2(document.getElementById("map"));
            map.setCenter(new GLatLng(37.4419, -122.1419), 13);
          }
        }
     
        //]]>
        </script>
      </head>
      <body onload="load()" onunload="GUnload()">
        <div id="map" style="width: 500px; height:495px"></div>
     
        <div align="center">
          <script>
       function showAddress(address) {
      geocoder.getLatLng(
        address,
        function(point) {
          if (!point) {
            alert(address + " non trouvée");
          } else {
            map.setCenter(point, 15);
            var marker = new GMarker(point);
            map.addOverlay(marker);
            //marker.openInfoWindowHtml(address);
          }
        }
      );
    }
        </script>
     
          <script type="text/javascript">
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GMapTypeControl());
    map.addControl(new GLargeMapControl());
    map.addControl(new GScaleControl()) ;
    var geocoder = new GClientGeocoder();
     
    showAddress("87 rue bobillot, paris");
    map.setMapType(G_PLAN_TYPE);
        </script>
          <a href="#" onclick="window.close()"><strong>Fermer</strong></a>&nbsp;&nbsp;<a href="#" onclick="print()"><strong>Imprimer</strong></a>
          </div>
      </body>
    </html>	
      </body>
    </html>

  6. #6
    Membre averti
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    397
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 397
    Points : 430
    Points
    430
    Par défaut
    Je pense que si tu pouvais expliquer les fonctionnalités que tu désires, tu trouverais surement plus de réponses, parce que si il faut analyser ce que fait ton code pour pouvoir te répondre.

    Bon courage

  7. #7
    Membre habitué
    Profil pro
    Inscrit en
    Novembre 2007
    Messages
    381
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : Maroc

    Informations forums :
    Inscription : Novembre 2007
    Messages : 381
    Points : 180
    Points
    180
    Par défaut
    Salut,
    Je travail dans une application en ASP et je veux un script qui me permet de changer l'adresse a chaque fois. Chaque page a des informations contenant une adresse et a chaque clique du bouton voir la map il récupère l'adresse et la vile.
    Normalement ce script marchait très bien avant.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
        <title><%=request.QueryString("adresse")%></title>
        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAfiQdpJ9supzq6oNEwKLw7RSekOGvW7h90KIhQhGh9SFbJCi9HRTWHZxnsssuQjLD3HC-uUOhcZayIA"
          type="text/javascript"></script>
        <script type="text/javascript">
     
        //<![CDATA[
     
        function load() {
          if (GBrowserIsCompatible()) {
            var map = new GMap2(document.getElementById("map"));
            map.setCenter(new GLatLng(37.4419, -122.1419), 13);
          }
        }
     
        //]]>
        </script>
      </head>
      <body onload="load()" onunload="GUnload()">
        <div id="map" style="width: 500px; height:495px"></div>
     
        <div align="center">
          <script>
       function showAddress(address) {
      geocoder.getLatLng(
        address,
        function(point) {
          if (!point) {
            alert(address + " non trouvée");
          } else {
            map.setCenter(point, 15);
            var marker = new GMarker(point);
            map.addOverlay(marker);
            //marker.openInfoWindowHtml(address);
          }
        }
      );
    }
        </script>
     
          <script type="text/javascript">
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GMapTypeControl());
    map.addControl(new GLargeMapControl());
    map.addControl(new GScaleControl()) ;
    var geocoder = new GClientGeocoder();
     
    showAddress("<%response.Write(request.QueryString("adresse")& ", " &request.QueryString("ville"))%>");
    map.setMapType(G_PLAN_TYPE);
        </script>
          <a href="#" onclick="window.close()"><strong>Fermer</strong></a>&nbsp;&nbsp;<a href="#" onclick="print()"><strong>Imprimer</strong></a>
          </div>
      </body>
    </html>	
      </body>
    </html>

Discussions similaires

  1. Google map API
    Par rudylar dans le forum Général JavaScript
    Réponses: 0
    Dernier message: 02/07/2008, 18h53
  2. Google Map - API Java ?
    Par onlytoine dans le forum Collection et Stream
    Réponses: 3
    Dernier message: 28/04/2008, 11h25
  3. Utilisation de la Google Maps API ?
    Par [ZiP] dans le forum Web & réseau
    Réponses: 4
    Dernier message: 04/09/2007, 22h26
  4. Google Map API --> Javascript et code behind C#
    Par bridel dans le forum ASP.NET
    Réponses: 2
    Dernier message: 22/01/2007, 21h07
  5. google map api
    Par raphs43 dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 27/12/2006, 20h28

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo