From c191181e6a8f001491eb03033059d2b47944af59 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Wed, 20 Dec 2023 11:24:42 +0900 Subject: [PATCH] Edit an existing boundary --- web/src/App.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/src/App.svelte b/web/src/App.svelte index 26ea723..e9c00e6 100644 --- a/web/src/App.svelte +++ b/web/src/App.svelte @@ -52,10 +52,15 @@ $: gotModel(model); function setBoundaryMode() { + if (mode.mode == "network") { + route_tool.startArea(); + } else if (mode.mode == "neighbourhood") { + route_tool.editExistingArea(mode.boundary); + } + mode = { mode: "set-boundary", }; - route_tool.startArea(); route_tool.addEventListenerSuccess((feature) => { mode = { mode: "neighbourhood", @@ -297,7 +302,8 @@ {:else if mode.mode == "set-boundary"}

Draw the boundary...

{:else if mode.mode == "neighbourhood"} - +
+

Analyze and edit now

{/if}