From 5942cf37b4628e9b65264965297931dc68486d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P=2E?= Date: Sun, 20 Sep 2026 12:57:05 +0200 Subject: [PATCH] Refactor bview to Stimulus (mostly) --- css/app.css | 9 +++ webgis/index.html | 67 ++++++++++++++++++++++- webgis/js/controllers/bview_controller.js | 11 +++- webgis/js/gis.js | 13 ++--- webgis/js/layer_options.js | 6 +- webgis/js/ui.js | 14 ----- 6 files changed, 93 insertions(+), 27 deletions(-) diff --git a/css/app.css b/css/app.css index b3f6f35..c3cbc3c 100644 --- a/css/app.css +++ b/css/app.css @@ -225,4 +225,13 @@ input:invalid { border:#263aac 4px solid; border-radius: 8px; background-color: #aad3df; +} +.bview-legend { + position: absolute; + bottom: 2rem; + right: 0.8rem; + width: fit-content; + border-radius: 8px; + min-height: 200px; + z-index: 9999; } \ No newline at end of file diff --git a/webgis/index.html b/webgis/index.html index 5f64bb7..a313008 100644 --- a/webgis/index.html +++ b/webgis/index.html @@ -27,7 +27,12 @@ WebGIS Isola di Capri + data-action=" + menu-ready@document->menu#buildMenu + menu-ready@document->menu#buildCartographyMenu + keydown.esc->bview#closeView + bview-active@document->bview#openView + ">