diff --git a/src/lib/browse/schemes/InterventionPopup.svelte b/src/lib/browse/schemes/InterventionPopup.svelte index 0ec1205d..53808814 100644 --- a/src/lib/browse/schemes/InterventionPopup.svelte +++ b/src/lib/browse/schemes/InterventionPopup.svelte @@ -16,6 +16,7 @@ import { afterUpdate } from "svelte"; export let description: string; + // Note these come from maplibre, meaning nested fields (like pipeline) are stringified export let props: { [name: string]: any }; export let schemesGj: Schemes; export let filterSchemeText: string; @@ -121,7 +122,7 @@ {/if} {#if props.pipeline} - {@const p = props.pipeline} + {@const p = JSON.parse(props.pipeline)} {#if p.atf4_type}
ATF4 type
@@ -141,6 +142,30 @@
+ Type + : {p.intervention_type} +
+ {/if} + {#if p.work_type} ++ What kind of infrastructure is mapped + : {p.work_type} +
+ {/if} + + {#if p.for_cycling && props.v2.for_walking_wheeling} +For cycling, walking, and wheeling
+ {:else if p.for_cycling} +Only for cycling
+ {:else if p.for_walking_wheeling} +Only for walking and wheeling
+ {/if} + {/if} +