diff --git a/all.php b/all.php
deleted file mode 100644
index d0fb9e1..0000000
--- a/all.php
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
- Carte OpenStreetMap
-
-
-
-
-
-
-
-
-
-
Brocantes du ' . $item['node'] . '
';
- break;
- }
- }
- ?>
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/core.php b/core.php
index 6ccd688..887cbe6 100644
--- a/core.php
+++ b/core.php
@@ -67,6 +67,12 @@ function getCities($html)
);
}
}
+ // Créer un tableau temporaire contenant les valeurs de la clé "name"
+ $names = array_column($cities, 'name');
+
+ // Trier le tableau temporaire par ordre alphabétique
+ array_multisort($names, SORT_ASC, $cities);
+ ;
return $cities;
}
@@ -105,10 +111,8 @@ function geocode($cities)
'lon' => $longitude,
'href' => $href,
);
- } else {
- echo "Erreur : Impossible de géocoder la ville : " . $ville;
}
}
return $citiesData;
-}
+}
\ No newline at end of file
diff --git a/index.php b/index.php
index 0f87773..109550f 100644
--- a/index.php
+++ b/index.php
@@ -1,22 +1,20 @@
+
- Formulaire de sélection
+ Carte Sabradou
+
-
-
+
\ No newline at end of file
diff --git a/map.php b/map.php
deleted file mode 100644
index 2a617b9..0000000
--- a/map.php
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
- Carte OpenStreetMap
-
-
-
-
-
-
-
-
-
- Brocantes du ' . $item['node'] . '
';
- break;
- }
- }
- ?>
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/style.css b/style.css
index 6faaad8..18bff78 100644
--- a/style.css
+++ b/style.css
@@ -1,32 +1,19 @@
#map {
- height: 600px;
+ height: 800px;
width: 1200px;
- margin-left: auto;
- margin-right: auto;
+ margin: auto;
}
.container {
- display: block;
- width: 100%;
-}
-
-.form {
- max-width: 600px; /* Vous pouvez ajuster la largeur maximale selon vos besoins */
- width: 200%;
-}
-
-.footer, .header{
- text-align: center;
-}
-
-.container {
- display: block;
+ display: flex;
width: 100%;
+ align-content: center;
}
.left-column {
display: flex;
width: 20%;
+ max-height: 80%;
padding: 10px;
}
@@ -36,7 +23,11 @@
padding: 10px;
}
-#map {
- height: 500px;
+.cities {
+ list-style: none;
+}
+
+.header > * {
+ text-align: center;
}