From e8a9b0187c6befd0bd4c52b1bf6d5ae5a659aeb1 Mon Sep 17 00:00:00 2001 From: Antoine Jacquin Date: Sat, 19 Sep 2026 10:55:44 +0200 Subject: [PATCH] =?UTF-8?q?Porter=20la=20carte=20au=20zoom=2020=20et=20pas?= =?UTF-8?q?ser=20le=20worker=20=C3=A0=205=20workers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.worker.yml | 2 +- lidar_pipeline/index.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-compose.worker.yml b/docker-compose.worker.yml index 2ce2ff2..b645b29 100644 --- a/docker-compose.worker.yml +++ b/docker-compose.worker.yml @@ -33,7 +33,7 @@ services: - LIDAR_OUTPUT_DIR=/data/output # Les générations lancées depuis une webapp distante utilisent le GPU - LIDAR_GPU=1 - - LIDAR_WORKERS=2 + - LIDAR_WORKERS=5 # Protéger l'API si le réseau n'est pas de confiance : même valeur que # LIDAR_REMOTE_TOKEN sur chaque webapp distante (sinon, laisser commenté) # - LIDAR_API_TOKEN=change-moi diff --git a/lidar_pipeline/index.py b/lidar_pipeline/index.py index 61bb79d..9a0c203 100644 --- a/lidar_pipeline/index.py +++ b/lidar_pipeline/index.py @@ -1948,7 +1948,7 @@ const map = L.map('viewport', { zoomControl: false, attributionControl: false, minZoom: 4, - maxZoom: 19, + maxZoom: 20, // Les marqueurs ne doivent pas glisser individuellement pendant le zoom : // le pane lidarTiles est mis à l'échelle d'un bloc (voir zoomanim ci-dessous), // le glissement propre des icônes s'ajouterait au scaling (double mouvement). @@ -1974,7 +1974,10 @@ window.map = map; // accès débogage / automatisations window.TILES = TILES; const osmLayer = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { - maxZoom: 19, + // OSM s'arrête à z19 : au-delà Leaflet agrandit les tuiles z19 + // (maxNativeZoom) au lieu de demander des tuiles inexistantes. + maxZoom: 20, + maxNativeZoom: 19, keepBuffer: 1 }).addTo(map); L.control.scale({ metric: true, imperial: false, position: 'bottomleft' }).addTo(map);