diff --git a/index.php b/index.php index 7f9eb68..85aac57 100644 --- a/index.php +++ b/index.php @@ -8,10 +8,10 @@

Choisis une carte

diff --git a/js/map.js b/js/map.js index d1b8d5f..9bfd5f0 100644 --- a/js/map.js +++ b/js/map.js @@ -47,7 +47,7 @@ switch (codeDepartement) { */ const map = new maplibregl.Map({ container: 'map', - style: `./kat/styles/${styleFileName}`, + style: `../kat/styles/${styleFileName}`, center: centerCoordinates, zoom: zoomLevel }) @@ -112,7 +112,7 @@ const correctAnswers = new Set() */ async function getFile(codeDepartement) { try { - const response = await fetch(`./kat/data/${codeDepartement}/contours-communes.geojson`) + const response = await fetch(`../kat/data/${codeDepartement}/contours-communes.geojson`) if (!response.ok) { throw new Error(`Échec du chargement du fichier JSON : ${response.statusText}`) } @@ -135,7 +135,7 @@ async function getFile(codeDepartement) { async function getCommuneCenterCoordinates(codeDepartement, communeCode) { try { // Utiliser fetch pour lire le fichier "centres.json" - const response = await fetch(`./kat/data/${codeDepartement}/centres.json`) + const response = await fetch(`../kat/data/${codeDepartement}/centres.json`) if (!response.ok) { throw new Error(`Échec du chargement du fichier JSON : ${response.statusText}`) } @@ -229,7 +229,7 @@ map.on('load', async () => { */ map.addSource('communes', { 'type': 'geojson', - 'data': `./kat/data/${codeDepartement}/contours-communes.geojson`, + 'data': `../kat/data/${codeDepartement}/contours-communes.geojson`, 'promoteId': 'code' }) diff --git a/971.php b/kat/971.php similarity index 89% rename from 971.php rename to kat/971.php index ec20ae6..57dbb2f 100644 --- a/971.php +++ b/kat/971.php @@ -3,7 +3,7 @@ JWE - KAT - +

Guadeloupe (971)

@@ -21,6 +21,6 @@
- + diff --git a/972.php b/kat/972.php similarity index 89% rename from 972.php rename to kat/972.php index 11ea0b4..b849d2d 100644 --- a/972.php +++ b/kat/972.php @@ -3,7 +3,7 @@ JWE - KAT - +

Martinique (972)

@@ -21,6 +21,6 @@
- + diff --git a/973.php b/kat/973.php similarity index 89% rename from 973.php rename to kat/973.php index d43cebe..81b3db4 100644 --- a/973.php +++ b/kat/973.php @@ -3,7 +3,7 @@ JWE - KAT - +

Guyane (973)

@@ -21,6 +21,6 @@
- + diff --git a/974.php b/kat/974.php similarity index 89% rename from 974.php rename to kat/974.php index 39fe93e..e9e0cf9 100644 --- a/974.php +++ b/kat/974.php @@ -3,7 +3,7 @@ JWE - KAT - +

La Réunion (974)

@@ -21,6 +21,6 @@
- +