Compare commits

2 Commits
dev ... master

Author SHA1 Message Date
Léo Serre
e00229a64f Adapt theme 2024-11-27 20:12:53 +00:00
Léo Serre
c6e0c69ad7 Passage à la nouvelle API IGN 2024-11-27 20:07:14 +00:00
12 changed files with 9769 additions and 680 deletions

View File

@@ -25,28 +25,28 @@
</style>
</head>
<body>
<div id="map"></div>
<div id="map" <?php if ($_GET['dark']) echo "class='dark'"; ?>></div>
<script type="text/javascript">
// ******** 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 © <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?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 France</a>'});
@@ -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,

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 B

BIN
iFrameGPX/leaflet/images/marker-icon-2x.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
iFrameGPX/leaflet/images/marker-icon.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
iFrameGPX/leaflet/images/marker-shadow.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 797 B

8949
iFrameGPX/leaflet/leaflet-src.js Executable file

File diff suppressed because it is too large Load Diff

1458
iFrameGPX/leaflet/leaflet.css Normal file → Executable file

File diff suppressed because it is too large Load Diff

15
iFrameGPX/leaflet/leaflet.js Normal file → Executable file

File diff suppressed because one or more lines are too long