From 5a815cb3082dc44299c9b3abf0f627ca00371734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 24 Oct 2025 21:42:26 +0400 Subject: [PATCH] Typo: KAMA to KMT --- index.php | 2 +- js/map.js | 12 ++++++------ kat/{KAMA.php => KMT.php} | 2 +- kat/styles/ortho-jwe-KAMA.json | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) rename kat/{KAMA.php => KMT.php} (93%) diff --git a/index.php b/index.php index 686c9fa..3e0cd6d 100644 --- a/index.php +++ b/index.php @@ -11,7 +11,7 @@ diff --git a/js/map.js b/js/map.js index dc3d8dd..6f7fa39 100644 --- a/js/map.js +++ b/js/map.js @@ -28,10 +28,10 @@ let zoomLevel let styleFileName switch (codeCarte) { - case 'KAMA': + case 'KMT': centerCoordinates = [21.21, 1.36] // Afrique zoomLevel = 2.7 - styleFileName = 'ortho-jwe-KAMA.json' + styleFileName = 'ortho-jwe-KMT.json' break case 'KARUKERA': centerCoordinates = [-61.4167, 16.25] // Guadeloupe @@ -136,7 +136,7 @@ function startGame() { const score = document.getElementById('score') const chrono = document.getElementById('chrono') - question.innerHTML = `

Trouve ${codeCarte === 'KAMA' ? 'le pays' : 'la commune'}

...

` + question.innerHTML = `

Trouve ${codeCarte === 'KMT' ? 'le pays' : 'la commune'}

...

` score.innerHTML = "

Correct ✅ : 0

Faux ❌ : 0

" chrono.innerHTML = "

Temps écoulé :

" @@ -215,7 +215,7 @@ function communeObserver(){ */ async function getFile(codeCarte) { try { - const response = await fetch(`../kat/data/${codeCarte}/contours-${codeCarte === 'KAMA' ? 'pays' : 'communes'}.geojson`) + const response = await fetch(`../kat/data/${codeCarte}/contours-${codeCarte === 'KMT' ? 'pays' : 'communes'}.geojson`) if (!response.ok) { throw new Error(`Échec du chargement du fichier JSON : ${response.statusText}`) } @@ -338,7 +338,7 @@ function loadMap() { map.setMaxZoom(9.5) } - if (codeCarte === 'KAMA') { + if (codeCarte === 'KMT') { /** * Ajoute les contrôles de navigation à la carte, et définit les niveaux de zoom minimum et maximum pour l'Afrique'. */ @@ -381,7 +381,7 @@ function loadMap() { */ map.addSource('communes', { 'type': 'geojson', - 'data': `../kat/data/${codeCarte}/contours-${codeCarte === 'KAMA' ? 'pays' : 'communes'}.geojson`, + 'data': `../kat/data/${codeCarte}/contours-${codeCarte === 'KMT' ? 'pays' : 'communes'}.geojson`, 'promoteId': 'code' }) diff --git a/kat/KAMA.php b/kat/KMT.php similarity index 93% rename from kat/KAMA.php rename to kat/KMT.php index b9f1ea3..48b28f8 100644 --- a/kat/KAMA.php +++ b/kat/KMT.php @@ -7,7 +7,7 @@ diff --git a/kat/styles/ortho-jwe-KAMA.json b/kat/styles/ortho-jwe-KAMA.json index c32e228..53d81f9 100644 --- a/kat/styles/ortho-jwe-KAMA.json +++ b/kat/styles/ortho-jwe-KAMA.json @@ -10,9 +10,9 @@ "tileSize": 256, "attribution": "© IGN" }, - "kama": { + "KMT": { "type": "vector", - "url": "https://tiles.jwe.ovh/data/KAMA.json" + "url": "https://tiles.jwe.ovh/data/KMT.json" } }, "layers": [ @@ -24,7 +24,7 @@ { "id": "boundary", "type": "line", - "source": "kama", + "source": "KMT", "source-layer": "boundary", "minzoom": 2, "layout": {