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

Conception Web Discussion :

Google Map, carte de france


Sujet :

Conception Web

  1. #1
    Membre à l'essai
    Inscrit en
    Juin 2008
    Messages
    20
    Détails du profil
    Informations forums :
    Inscription : Juin 2008
    Messages : 20
    Points : 12
    Points
    12
    Par défaut Google Map, carte de france
    Bonjour à tous,

    en utilisant google map, j'ai besoin d'un code qui n'affiche que la carte de la France avec la possibilité d'ajouter plusieurs Marker pointés sur des villes en connaissant leur Longitude et latitude.

    Quelqu'un peut m'aider?

    N.B : Je vous informe que je suis débutant dans les technologies Web.

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    603
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : Belgique

    Informations forums :
    Inscription : Janvier 2006
    Messages : 603
    Points : 700
    Points
    700
    Par défaut
    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
    <!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" xmlns:v="urn:schemas-microsoft-com:vml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title>Google Maps JavaScript API Example</title>
        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=XINSERERXXXXCLEXAPIXXXX"
                type="text/javascript"></script>
        <script type="text/javascript">
    
        function initialize() {
          if (GBrowserIsCompatible()) {
            var map = new GMap2(document.getElementById("map_canvas"));
            map.addControl(new GMapTypeControl()); // Changer de vue
            map.addControl(new GSmallMapControl()); // Zoom
            map.addControl(new GScaleControl()); // échelle
            map.setCenter(new GLatLng(46.227638, 2.213749), 4); // LatLng et Zoom par défaut
            // Lille
            var marker = new GMarker(new GLatLng(50.663826,3.079948));
            map.addOverlay(marker);
            // Nancy
            var marker = new GMarker(new GLatLng(48.647428,3.47168));
            map.addOverlay(marker);
            // Paris
            var marker = new GMarker(new GLatLng(48.884134,2.367897));
            map.addOverlay(marker);
            // Lyon
            var marker = new GMarker(new GLatLng(45.825928,4.868317));
            map.addOverlay(marker);
            // Dijon
            var marker = new GMarker(new GLatLng(47.355571,5.060921));
            map.addOverlay(marker);
            // Marseille
            var marker = new GMarker(new GLatLng(43.359135,5.416946));
            map.addOverlay(marker);
            // Bordeaux
            var marker = new GMarker(new GLatLng(44.896741,-0.54245));
            map.addOverlay(marker);
            // Toulouse
            var marker = new GMarker(new GLatLng(43.664891,1.476288));
            map.addOverlay(marker);
            // Nantes
            var marker = new GMarker(new GLatLng(47.273639,-1.52298));
            map.addOverlay(marker);
            // Brest
            var marker = new GMarker(new GLatLng(48.446056,-4.453583));
            map.addOverlay(marker);
          }
        }
    
        </script>
      </head>
      <body onload="initialize()" onunload="GUnload()">
        <div id="map_canvas" style="width: 500px; height: 300px"></div>
      </body>
    </html>
    coffee powered

  3. #3
    Membre à l'essai
    Inscrit en
    Juin 2008
    Messages
    20
    Détails du profil
    Informations forums :
    Inscription : Juin 2008
    Messages : 20
    Points : 12
    Points
    12
    Par défaut changer le type de Marker de google map
    SVP, je ferais quoi si je souhaite changer le type de marker "les montgolfières rouges" ?

    Merci d'avance

  4. #4
    Membre éclairé
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    603
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : Belgique

    Informations forums :
    Inscription : Janvier 2006
    Messages : 603
    Points : 700
    Points
    700
    coffee powered

Discussions similaires

  1. Récupérer carte de google maps dans Feuil2
    Par damlarumeur dans le forum Macros et VBA Excel
    Réponses: 8
    Dernier message: 26/02/2009, 14h50
  2. Pb affichage carte Google Map
    Par Fifilosof dans le forum Général Conception Web
    Réponses: 3
    Dernier message: 13/10/2008, 09h47
  3. [Google Map]Impossible d'afficher la carte
    Par Invité dans le forum Général JavaScript
    Réponses: 0
    Dernier message: 25/09/2008, 11h46
  4. Google map - intégrer une fonction "recherche" à une carte
    Par jeanflo037 dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 03/07/2008, 10h45
  5. Récupérer cartes Google Maps
    Par EmlTakeo dans le forum C++
    Réponses: 2
    Dernier message: 24/10/2007, 20h09

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