From 2310676886c903e62680d9a3d7bec4536af94578 Mon Sep 17 00:00:00 2001 From: Antoine Jacquin Date: Sat, 19 Sep 2026 19:07:21 +0200 Subject: [PATCH] =?UTF-8?q?Preset=20D=C3=A9faut=20:=20fond=20OSM=20visible?= =?UTF-8?q?=20=C3=A0=2030=20%=20sous=20la=20pile=20de=20couches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lidar_pipeline/index.py | 2 +- lidar_pipeline/tests/test_index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lidar_pipeline/index.py b/lidar_pipeline/index.py index 579195a..5e54c0c 100644 --- a/lidar_pipeline/index.py +++ b/lidar_pipeline/index.py @@ -2474,7 +2474,7 @@ async function syncCustomPresets() { const BUILTIN_PRESETS = [ { label: 'Défaut', on: ['positive_openness', 'aspect', 'slope'], opacity: { slope: 0, aspect: 0.5, positive_openness: 1 }, - osm: { on: false } }, + osm: { on: true, opacity: 0.3 } }, ]; // Niveaux de transparence d'un preset, lisibles dans la liste diff --git a/lidar_pipeline/tests/test_index.py b/lidar_pipeline/tests/test_index.py index 2305504..49cd1fc 100644 --- a/lidar_pipeline/tests/test_index.py +++ b/lidar_pipeline/tests/test_index.py @@ -287,7 +287,7 @@ def test_build_index_generates_html(tmp_path): assert 'id="presetSave"' in content assert "BUILTIN_PRESETS" in app_js and "applyPreset" in app_js assert "presetDetail" in app_js and "lidarPresets_v1" in app_js - assert "osm: { on: false }" in app_js # presets portent le fond OSM + assert "osm: { on: true, opacity: 0.3 }" in app_js # preset porte le fond OSM assert "p.osm" in app_js # l'application y inclut le fond # Partage de la vue : bouton « Partager » + lien contenant vue, couches # et transparences (hash #zoom,lat,lng&L=...&O=...) — le destinataire