This commit is contained in:
Tykayn 2025-06-06 23:01:03 +02:00 committed by tykayn
parent 86a870d1e7
commit 2eb80d587d
3 changed files with 68 additions and 73 deletions

View file

@ -121,13 +121,7 @@
window.location.href = '/admin/labourer/' + document.getElementById('app_admin_labourer').value;
}
// Créer une carte des villes avec les codes postaux
let map = new maplibregl.Map({
container: 'mapDashboard',
style: 'https://api.maptiler.com/maps/basic-v2/style.json?key={{ maptiler_token }}',
center: [2.3488, 48.8534], // Paris
zoom: 10
});
// Fonction pour obtenir la couleur selon le pourcentage
function getColorFromPercent(percent) {
@ -187,7 +181,6 @@ out skel qt;`;
<div class="col-12">
<h2>Statistiques : {{ stats|length }} codes postaux</h2>
{# <div id="mapDashboard"></div> #}
<table class="table table-hover table-striped table-responsive js-sort-table">