Skip to content

Commit

Permalink
Edit an existing boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Dec 20, 2023
1 parent 6407c66 commit c191181
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions web/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -297,7 +302,8 @@
{:else if mode.mode == "set-boundary"}
<p>Draw the boundary...</p>
{:else if mode.mode == "neighbourhood"}
<button on:click={reset}>Reset</button>
<div><button on:click={reset}>Reset</button></div>
<div><button on:click={setBoundaryMode}>Edit boundary</button></div>
<p>Analyze and edit now</p>
{/if}
</div>
Expand Down

0 comments on commit c191181

Please sign in to comment.