map on home

This commit is contained in:
Tykayn 2025-07-05 12:37:01 +02:00 committed by tykayn
parent a5cd69961f
commit 56f62c45bb
14 changed files with 588 additions and 15 deletions

View file

@ -22,7 +22,7 @@
<p>Historique des objets suivis (nombre et complétion).</p>
{% for type, label in followup_labels %}
<h2 id="title-{{ type }}"><i class="bi {{ followup_icons[type]|default('bi-question-circle') }} fs-2"></i> {{ label }}</h2>
<canvas id="{{ type }}Chart" width="600" height="300"></canvas>
<canvas id="{{ type }}Chart" width="600" height="400"></canvas>
<div class="mb-3">
{% set overpass_query = '[out:json][timeout:60];\narea["ref:INSEE"="' ~ stats.zone ~ '"]->.searchArea;\n(' ~ followup_overpass[type]|default('') ~ ');\n\n(._;>;);\n\nout meta;\n>;' %}
<a href="https://overpass-turbo.eu/?Q={{ overpass_query|url_encode }}" target="_blank" class="btn btn-sm btn-outline-primary me-2">