From 5b451629b6c42da40156cb9bf02e4176f02362d0 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Mon, 24 Jul 2023 10:59:42 +0100 Subject: [PATCH] Consolidate 3 layer-like controls --- src/lib/Legend.svelte | 90 +++++++++++++++------------------- src/pages/App.svelte | 22 ++++++--- src/pages/BrowseSchemes.svelte | 2 - 3 files changed, 53 insertions(+), 61 deletions(-) diff --git a/src/lib/Legend.svelte b/src/lib/Legend.svelte index a73505e52..5578c751b 100644 --- a/src/lib/Legend.svelte +++ b/src/lib/Legend.svelte @@ -6,54 +6,42 @@ export let schema: Schema; -
- -
    - {#if schema == "planning"} -
  • - - Preapp -
  • -
  • - - Outline -
  • -
  • - - Reserved matters -
  • -
  • - - Local plan -
  • - {:else} -
  • - - Areas -
  • -
  • - - Routes -
  • -
  • - - Crossings -
  • -
  • - - Other -
  • - {/if} -
-
-
- - + + + diff --git a/src/pages/App.svelte b/src/pages/App.svelte index 0d26aa881..05189ea26 100644 --- a/src/pages/App.svelte +++ b/src/pages/App.svelte @@ -7,7 +7,12 @@ import { onMount } from "svelte"; import authoritiesUrl from "../../assets/authorities.geojson?url"; import BoundaryLayer from "../lib/BoundaryLayer.svelte"; - import { BaselayerSwitcher, Layout, ZoomOutMap } from "../lib/common"; + import { + BaselayerSwitcher, + CollapsibleCard, + Layout, + ZoomOutMap, + } from "../lib/common"; import HoverLayer from "../lib/draw/HoverLayer.svelte"; import InterventionLayer from "../lib/draw/InterventionLayer.svelte"; import Toolbox from "../lib/draw/Toolbox.svelte"; @@ -111,8 +116,6 @@
-
-
@@ -120,10 +123,13 @@ -
- +
+ + + + +
-
@@ -132,10 +138,10 @@