From c6e0c69ad70099eb170a5eba2b62ff29a78b19f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Serre?= Date: Wed, 27 Nov 2024 20:07:14 +0000 Subject: [PATCH] =?UTF-8?q?Passage=20=C3=A0=20la=20nouvelle=20API=20IGN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iFrameGPX/index.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/iFrameGPX/index.php b/iFrameGPX/index.php index 212f1b1..a2fc5f3 100755 --- a/iFrameGPX/index.php +++ b/iFrameGPX/index.php @@ -32,21 +32,21 @@ // ******** Generating the Leaflet map ******** // IGN URL to the IGN layer -var KeyIGN = "ataevimogohmg1wxpg1jo2wh" // professionels.ign.fr +var KeyIGN = "ign_scan_ws" // professionels.ign.fr -var url_wmts_ign = "//wxs.ign.fr/"+ - KeyIGN + - "/geoportail/wmts?LAYER="+ - "GEOGRAPHICALGRIDSYSTEMS.MAPS"+ - "&EXCEPTIONS=text/xml&FORMAT="+ - "image/jpeg"+ - "&SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&STYLE="+ - "normal"+ - "&TILEMATRIXSET=PM&&TILEMATRIX={z}&TILECOL={x}&TILEROW={y}"; // Correct tile +var url_wmts_ign = "https://data.geopf.fr/private/wmts?" + + "&REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0" + + "&STYLE=normal" + + "&TILEMATRIXSET=PM" + + "&FORMAT=image/jpeg"+ + "&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS"+ + "&TILEMATRIX={z}" + + "&TILEROW={y}" + + "&TILECOL={x}" + + "&apikey=" + KeyIGN; // 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?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 France'}); @@ -71,7 +71,6 @@ var attributionControl = map.addControl(new L.control.attribution({position: 'to // Base layers var baseLayers = { "OSM France": osmfr, - "OSM Outdoor": outdoor, "IGN France": ign, "IGN Espagne": ign_es, "OSM Topo": ostopo,