@@ -449,7 +449,7 @@
map = new maplibregl.Map({
container: 'map',
style: 'https://api.maptiler.com/maps/basic-v2/style.json?key={{ maptiler_token }}',
- center: [2.3522, 48.8566], // Paris
+ center: [{{stats.places?stats.places[0].lat}}, {{stats.places?stats.places[0].lon}}], // Paris
zoom: 12
});
diff --git a/templates/public/dashboard.html.twig b/templates/public/dashboard.html.twig
index 9f661b4..366d51b 100644
--- a/templates/public/dashboard.html.twig
+++ b/templates/public/dashboard.html.twig
@@ -106,6 +106,7 @@
Complétion |
Nombre de commerces |
Lieux par habitants |
+
Date moyenne de mise à jour |
Actions |
@@ -121,8 +122,9 @@
{{ stat.zone }} |
{{ stat.completionPercent }}% |
-
{{ stat.places|length }} |
-
{{ (stat.places|length / (stat.population or 1 ))|round(2) }} |
+
{{ stat.placesCount }} |
+
{{ (stat.placesCount / (stat.population or 1 ))|round(2) }} |
+
{{ stat.osmDataDateAvg|date('Y-m-d H:i') }} |
|