asc:rando
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
asc:rando [2017/01/08 16:08] – jbpuel | asc:rando [2017/01/16 16:01] – jbpuel | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
De nombreuses rando, à pied ou à VTT sont possibles aux alentours d' | De nombreuses rando, à pied ou à VTT sont possibles aux alentours d' | ||
- | Une bonne source d' | + | Une bonne source d' |
- | + | ||
- | Carte des environs de l' | + | |
< | < | ||
+ | |||
< | < | ||
- | <link rel=" | + | < |
- | | + | <meta http-equiv=" |
- | </ | + | <meta name=" |
- | < | + | <!-- Library Leaflet --> |
- | < | + | <link rel=" |
- | <div id=" | + | <script src="cleaflet/ |
- | < | + | < |
- | <script> | + | < |
- | var mymap = L.map(' | + | <link rel="stylesheet" href="ign/GpPluginLeaflet.css" |
- | | + | </head> |
- | maxZoom: 18, | + | |
- | attribution: | + | |
- | '<a href="http:// | + | |
- | ' | + | |
- | id: ' | + | |
- | }).addTo(mymap); | + | |
- | < | ||
- | | ||
- | |||
- | | ||
- | color: ' | ||
- | fillColor: '# | ||
- | fillOpacity: | ||
- | }).addTo(mymap).bindPopup(" | ||
- | | + | < |
- | | + | <div id=" |
- | | + | <div id=" |
- | | + | |
- | | + | < |
- | | + | function go() { |
- | [43.5373766188072, | + | map = L.map(" |
- | | + | var lyr = L.geoportalLayer.WMTS({ |
- | [43.5351560721723, | + | // layer: " |
- | [43.53471661980089, | + | |
- | [43.534537726767894, | + | }, { // leafletParams |
- | | + | |
- | [43.53425771921613, | + | }); |
- | | + | lyr.addTo(map); // ou map.addLayer(lyr); |
- | | + | } |
- | [43.53327379348022, | + | |
- | [43.533013225478214, | + | |
- | ]).addTo(mymap).bindPopup("Aller au Bois Joli."); | + | |
+ | Gp.Services.getConfig({ | ||
+ | // apiKey : " | ||
+ | apiKey : " | ||
+ | onSuccess : go | ||
+ | }) ; | ||
- | var popup = L.popup(); | + | var infoDiv= document.getElementById(" |
- | function onMapClick(e) { | + | infoDiv.innerHTML= |
- | popup | + | </ |
- | .setLatLng(e.latlng) | + | |
- | .setContent("Coordonnées : " + e.latlng.toString()) | + | |
- | .openOn(mymap); | + | |
- | } | + | |
- | mymap.on(' | + | |
- | </ | + | |
- | </ | + | |
</ | </ | ||
</ | </ |
asc/rando.txt · Dernière modification : 2017/01/16 22:49 de jbpuel