From a12c95dcf8323acb50452d0cf76025115d5a3743 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 26 Jun 2024 13:16:19 -0400 Subject: [PATCH] Add layer controls to map --- src/Map.vue | 148 +++++++++++++++++++--------------------------------- 1 file changed, 54 insertions(+), 94 deletions(-) diff --git a/src/Map.vue b/src/Map.vue index 204cf8a..5fd8df8 100644 --- a/src/Map.vue +++ b/src/Map.vue @@ -6,58 +6,67 @@ > - + - - - - - - - + + + + + + + + +
-
- - - - - - - - - - - - - + +
+ + + + + + + + + + + + + +
+
- - - - - - - - - - - - - - -
+ +
+ + + + + + + + + + + + + + + +
+
- + @@ -73,11 +82,13 @@ - + + + @@ -262,55 +273,4 @@ body { width: 100vw; height: 100vh; } - -.ol-control.layer-toggles { - top: 0.5em; - right: 0.5em; - background-color: rgba(70, 115, 164, 0.7); - color: #eee; - white-space: nowrap; - max-height: calc(100vh - 1em); - overflow-y: auto; -} - -.layer-toggles > div { - margin: 0.5em; - margin-right: 1em; -} - -.ol-control.layer-toggles:hover { - background-color: rgba(0, 60, 136, 0.7); -} - -.layer-toggles > div > label { - display: block; -} - -.expand { - display: none; -} - -.expand + span::before { - content: '\25B6'; -} - -.expand:checked + span::before { - content: '\25BC'; -} - -.expand ~ .collapsible-content { - display: none; -} - -.expand:checked ~ .collapsible-content { - display: block; -} - -.collapsible-content { - margin-left: 0.8em; -} - -.collapsible-content > label { - display: block; -}