diff --git a/web/src/App.svelte b/web/src/App.svelte
index 7ec70e0..bdadef2 100644
--- a/web/src/App.svelte
+++ b/web/src/App.svelte
@@ -21,6 +21,7 @@
let route_b = null;
let route_gj = null;
let route_err = "";
+ let showSeverances = true;
onMount(async () => {
await init();
@@ -117,6 +118,10 @@
/>
{#if mode == "route"}
+
{#if route_err}
{route_err}
{/if}
@@ -140,7 +145,7 @@
>
{#if model}
{#if mode == "route"}
-
+
{:else if mode == "score"}
diff --git a/web/src/NetworkLayer.svelte b/web/src/NetworkLayer.svelte
index 154c8e8..50f9faf 100644
--- a/web/src/NetworkLayer.svelte
+++ b/web/src/NetworkLayer.svelte
@@ -3,6 +3,8 @@
import { constructMatchExpression } from "./common";
export let model;
+ // TODO Use filter expressions?
+ export let showSeverances: boolean;
@@ -22,6 +24,15 @@
},
"yellow"
),
+ "line-opacity": showSeverances
+ ? 1.0
+ : constructMatchExpression(
+ ["get", "kind"],
+ {
+ Severance: 0.0,
+ },
+ 1.0
+ ),
}}
on:click={(e) => window.open(e.detail.features[0].properties.way, "_blank")}
hoverCursor="pointer"