From 82f334143ff867c02c8a852927f9faa65f2a2c73 Mon Sep 17 00:00:00 2001 From: leosw Date: Mon, 29 Mar 2021 23:48:13 +0200 Subject: [PATCH] Fix, replace IGN map by ortophoto --- views/js/d.map.js | 2 +- views/js/d.poi_map.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/js/d.map.js b/views/js/d.map.js index 3dc994e..ffa91fa 100755 --- a/views/js/d.map.js +++ b/views/js/d.map.js @@ -3,7 +3,7 @@ var mymap; $( document ).ready(function() { // Differents layers for the map var topo_maptiler = L.tileLayer('https://api.maptiler.com/maps/topographique/{z}/{x}/{y}.png?key=Sm8M7mJ53GtYdl773rpi', {tms: false, attribution: 'Carte © MapTiler, Données © Contributeurs OpenStreetMap', tileSize: 512, zoomOffset: -1, minZoom: 1}); - var ign = L.tileLayer('https://wxs.ign.fr/5sf7ych7ecsa575btea2ln17/geoportail/wmts?service=WMTS&request=GetTile&version=1.0.0&tilematrixset=PM&tilematrix={z}&tilecol={x}&tilerow={y}&layer=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&format=image/jpeg&style=normal', {attribution: 'Carte & Connées © IGN-F/Géoportail'}); + var ign = L.tileLayer('https://wxs.ign.fr/5sf7ych7ecsa575btea2ln17/geoportail/wmts?service=WMTS&request=GetTile&version=1.0.0&tilematrixset=PM&tilematrix={z}&tilecol={x}&tilerow={y}&layer=ORTHOIMAGERY.ORTHOPHOTOS&format=image/jpeg&style=normal', {attribution: 'Carte & Connées © IGN-F/Géoportail'}); // Base layers var baseLayers = { "OpenStreetMap": topo_maptiler, diff --git a/views/js/d.poi_map.js b/views/js/d.poi_map.js index acd745a..194c85b 100755 --- a/views/js/d.poi_map.js +++ b/views/js/d.poi_map.js @@ -4,7 +4,7 @@ var poi_layer; $( document ).ready(function() { // Differents layers for the map var topo_maptiler = L.tileLayer('https://api.maptiler.com/maps/topographique/{z}/{x}/{y}.png?key=Sm8M7mJ53GtYdl773rpi', {tms: false, attribution: 'Carte © MapTiler, Données © Contributeurs OpenStreetMap', tileSize: 512, zoomOffset: -1, minZoom: 1}); - var ign = L.tileLayer('https://wxs.ign.fr/5sf7ych7ecsa575btea2ln17/geoportail/wmts?service=WMTS&request=GetTile&version=1.0.0&tilematrixset=PM&tilematrix={z}&tilecol={x}&tilerow={y}&layer=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&format=image/jpeg&style=normal', {attribution: 'Carte & Connées © IGN-F/Géoportail'}); + var ign = L.tileLayer('https://wxs.ign.fr/5sf7ych7ecsa575btea2ln17/geoportail/wmts?service=WMTS&request=GetTile&version=1.0.0&tilematrixset=PM&tilematrix={z}&tilecol={x}&tilerow={y}&layer=ORTHOIMAGERY.ORTHOPHOTOS&format=image/jpeg&style=normal', {attribution: 'Carte & Connées © IGN-F/Géoportail'}); // Base layers var baseLayers = { "OpenStreetMap": topo_maptiler,