From 11c98ffd90eedb77382f0d7d0732c4ea07dba872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Serre?= Date: Mon, 12 Aug 2019 08:17:22 +0000 Subject: [PATCH] Ajout du calque IGN espagne --- iFrameGPX/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iFrameGPX/index.php b/iFrameGPX/index.php index e2d1616..e7f22f2 100755 --- a/iFrameGPX/index.php +++ b/iFrameGPX/index.php @@ -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 © OpenSreetMap France, Data © OpenStreetMap contributors'}); - outdoor = L.tileLayer('//{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png', {maxZoom: 18, attribution: 'Maps © Thunderforest, Data © OpenStreetMap contributors'}), + outdoor = L.tileLayer('//{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey=333604b332324e6b9efc5f4298c0f643', {maxZoom: 18, attribution: 'Maps © Thunderforest, Data © OpenStreetMap contributors'}), outdoora = L.tileLayer('//s1.outdooractive.com/osm/OSMSummer/{z}/{x}/{y}.png', {maxZoom: 18, attribution: 'Maps © Outdoor Active, Data © OpenStreetMap contributors'}), ostopo = L.tileLayer('//{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {maxZoom: 16, attribution: 'Maps © OpenTopoMap, Data © OpenStreetMap contributors'}), - ign = L.tileLayer(url_wmts_ign, {maxZoom: 18, attribution: 'Maps & Data © IGN'}); + ign = L.tileLayer(url_wmts_ign, {maxZoom: 18, attribution: 'Maps & Data © IGN France'}); + 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 © IGN Españ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 };