geo:carto_ri
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édente | ||
geo:carto_ri [2017/06/07 19:38] – jbpuel | geo:carto_ri [2017/06/07 20:03] (Version actuelle) – jbpuel | ||
---|---|---|---|
Ligne 19: | Ligne 19: | ||
var Esri_WorldImagery = L.tileLayer(' | var Esri_WorldImagery = L.tileLayer(' | ||
- | var Esri_WorldTopoMap = L.tileLayer(' | + | |
- | attribution: | + | |
- | }); | + | |
- | + | ||
- | var HERE_hybridDay = L.tileLayer(' | + | |
attribution: | attribution: | ||
subdomains: | subdomains: | ||
Ligne 37: | Ligne 33: | ||
}); | }); | ||
+ | <!-- | ||
+ | var Esri_WorldTopoMap = L.tileLayer(' | ||
+ | --> | ||
- | + | | |
- | var url_carto = " | + | var carto = new L.tileLayer(url_carto, |
- | var carto = new L.tileLayer(url_carto, | + | |
{ | { | ||
maxZoom: 20, | maxZoom: 20, | ||
Ligne 47: | Ligne 45: | ||
}); | }); | ||
- | <!-- Gestion des spots --> | + | |
- | // var url_spots | + | var greenIcon |
- | var url_spots = "http://image.ensfea.fr/opp/spot.php? | + | iconUrl: 'https://cdn.rawgit.com/pointhi/ |
- | var coordo = []; | + | |
- | var nbspots=0; | + | iconSize: [25, 41], |
- | coordo.push(-36.8523378, | + | iconAnchor: [12, 41], |
- | coordo.push(31.90375409999999, | + | popupAnchor: |
- | coordo.push(50.598572, | + | shadowSize: [41, 41] |
- | coordo.push(50.5588327, | + | }); |
- | coordo.push(60.20775740196886, | + | var coordo = []; |
- | coordo.push(62.889201, | + | var nbspots=0; |
- | coordo.push(37.98266660000001, | + | coordo.push(-36.8523378, |
- | coordo.push(40.656953, | + | coordo.push(31.90375409999999, |
- | coordo.push(53.345771, | + | coordo.push(50.598572, |
- | coordo.push(52.137577, | + | coordo.push(50.5588327, |
- | coordo.push(41.7979921, | + | coordo.push(60.20775740196886, |
- | coordo.push(51.5167711, | + | coordo.push(62.889201, |
- | coordo.push(51.4709286, | + | coordo.push(37.98266660000001, |
- | coordo.push(45.7771896, | + | coordo.push(40.656953, |
- | coordo.push(50.8494596, | + | coordo.push(53.345771, |
- | coordo.push(46.0275786, | + | coordo.push(52.137577, |
- | coordo.push(61.50321679999999, | + | coordo.push(41.7979921, |
- | coordo.push(50.130001, | + | coordo.push(51.5167711, |
- | coordo.push(48.22927300000001, | + | coordo.push(51.4709286, |
- | coordo.push(50.30767, | + | coordo.push(45.7771896, |
- | + | coordo.push(50.8494596, | |
- | + | coordo.push(46.0275786, | |
- | | + | coordo.push(61.50321679999999, |
- | var spots = new L.layerGroup(); | + | coordo.push(50.130001, |
+ | coordo.push(48.22927300000001, | ||
+ | coordo.push(50.30767, | ||
+ | nbspots = 20; | ||
+ | var spots = new L.layerGroup(); | ||
| | ||
- | sp=1; | + | |
- | var url_ri = " | + | var url_ri = " |
- | L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< | + | L.marker([coordo[2*sp-2] , coordo[2*sp-1]], {icon: greenIcon}).bindPopup("< |
- | | + | |
- | url_ri = " | + | url_ri = " |
- | L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< | + | L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< |
- | | + | |
- | url_ri = " | + | url_ri = " |
- | L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< | + | L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< |
- | | + | |
- | url_ri = " | + | url_ri = " |
- | L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< | + | L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< |
sp=5; | sp=5; | ||
Ligne 157: | Ligne 159: | ||
L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< | L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("< | ||
- | var overlayMaps = { | + | |
- | " | + | " |
- | }; | + | }; |
- | <!-- Gestion des cartes de base --> | + | |
- | var baseMaps = { | + | |
- | " | + | var baseMaps = { |
- | " | + | // |
- | " | + | " |
- | " | + | // |
- | }; | + | " |
+ | }; | ||
+ | |||
+ | var mymap = L.map(' | ||
+ | { | ||
+ | center: [30.0, | ||
+ | zoom: 2, | ||
+ | layers: [carto, | ||
+ | }); | ||
+ | mymap.addLayer(spots); | ||
- | var mymap = L.map(' | + | |
- | { | + | L.control.scale({' |
- | center: [30.0, | + | </ |
- | zoom: 2, | + | |
- | layers: [carto, | + | |
- | }); | + | |
- | mymap.addLayer(spots); | + | |
- | <!-- En 2 fois pour que les 2 soient cochées par défaut --> | + | |
- | L.control.layers(baseMaps, | + | |
- | L.control.scale({' | + | |
- | </ | + | |
</ | </ | ||
</ | </ |
geo/carto_ri.txt · Dernière modification : 2017/06/07 20:03 de jbpuel