From 211379b9867a57a59152c058be27878403ef3c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Wed, 27 Nov 2024 11:48:03 +0100 Subject: [PATCH] Move some UI to Stimulus + Lo Pozzo geojson --- css/app.css | 1 + webgis/geojson/lopozzo.geojson | 8 ++ webgis/index.html | 94 +++++++++++++++-------- webgis/js/controllers/menu_controller.js | 15 ++-- webgis/js/controllers/modal_controller.js | 14 ++++ webgis/js/gis.js | 7 ++ webgis/js/icons.js | 2 +- webgis/js/index.js | 8 +- webgis/js/ui.js | 22 ------ 9 files changed, 107 insertions(+), 64 deletions(-) create mode 100644 webgis/geojson/lopozzo.geojson create mode 100644 webgis/js/controllers/modal_controller.js diff --git a/css/app.css b/css/app.css index 03f3bb9..62158e8 100644 --- a/css/app.css +++ b/css/app.css @@ -154,6 +154,7 @@ a:visited { /* Menu overlay */ #menu { z-index: 1000; + overflow-y: auto; } /* Content in tabs */ .docs-title { diff --git a/webgis/geojson/lopozzo.geojson b/webgis/geojson/lopozzo.geojson new file mode 100644 index 0000000..0c29621 --- /dev/null +++ b/webgis/geojson/lopozzo.geojson @@ -0,0 +1,8 @@ +{ +"type": "FeatureCollection", +"name": "lopozzo", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, +"features": [ +{ "type": "Feature", "properties": { "id": 1, "denominaz": "area residenziale e complesso idraulico in località Lo Pozzo" }, "geometry": { "type": "Point", "coordinates": [ 14.213643789607119, 40.556601906452713 ] } } +] +} diff --git a/webgis/index.html b/webgis/index.html index cc08089..86dfe00 100644 --- a/webgis/index.html +++ b/webgis/index.html @@ -41,21 +41,32 @@