Ajout du calque IGN espagne

This commit is contained in:
Léo Serre 2019-08-12 08:17:22 +00:00
parent cb05fa1770
commit 11c98ffd90
1 changed files with 6 additions and 2 deletions

View File

@ -47,10 +47,13 @@ var url_wmts_ign = "//wxs.ign.fr/"+
// Differents layers for the map
var osmfr = L.tileLayer('//{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {maxZoom: 20, attribution: 'Maps © <a href="http://www.openstreetmap.fr">OpenSreetMap France</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'});
outdoor = L.tileLayer('//{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png', {maxZoom: 18, attribution: 'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
outdoor = L.tileLayer('//{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey=333604b332324e6b9efc5f4298c0f643', {maxZoom: 18, attribution: 'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
outdoora = L.tileLayer('//s1.outdooractive.com/osm/OSMSummer/{z}/{x}/{y}.png', {maxZoom: 18, attribution: 'Maps © <a href="http://www.outdooractive.com">Outdoor Active</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
ostopo = L.tileLayer('//{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {maxZoom: 16, attribution: 'Maps © <a href="http://opentopomap.org">OpenTopoMap</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
ign = L.tileLayer(url_wmts_ign, {maxZoom: 18, attribution: 'Maps & Data © <a href="http://www.ign.fr/">IGN</a>'});
ign = L.tileLayer(url_wmts_ign, {maxZoom: 18, attribution: 'Maps & Data © <a href="http://www.ign.fr/">IGN France</a>'});
ign_es = L.tileLayer.wms('http://www.ign.es/wms-inspire/mapa-raster', {layers: 'mtn_rasterizado', format: 'image/png', transparent: false, continuousWorld : true, attribution: 'Maps & Data © <a href="http://www.ign.es/ign/main/index.do" target="_blank">IGN España</a>'
});
// Creation of the map
var map = L.map('map', {
@ -72,6 +75,7 @@ var baseLayers = {
"OSM France": osmfr,
"OSM Outdoor": outdoor,
"IGN France": ign,
"IGN Espagne": ign_es,
"OSM Topo": ostopo,
"OSM OutdoorActive ": outdoora
};