diff --git a/components/cal/legend.vue b/components/cal/legend.vue index 7d52e6d..f55a5e9 100644 --- a/components/cal/legend.vue +++ b/components/cal/legend.vue @@ -36,6 +36,14 @@ + +
+
+
+
Administrative Boundaries
+
+
+
@@ -79,7 +87,7 @@
-
+

() diff --git a/components/cal/map.vue b/components/cal/map.vue index e373c21..1466445 100644 --- a/components/cal/map.vue +++ b/components/cal/map.vue @@ -20,6 +20,8 @@ :has-data="hasData" :display-edit-bbox-mode="displayEditBboxMode" :hide-unmarked="hideUnmarked" + :has-scenario-data="hasScenarioData" + :show-admin-boundaries="showAdminBoundaries" /> { return !!(props.scenarioFilterResult?.stops.length || props.scenarioFilterResult?.routes.length) }) +// Is there scenario data loaded (regardless of whether it has stops/routes)? +const hasScenarioData = computed((): boolean => { + return !!props.scenarioFilterResult +}) + +// Are administrative boundaries selected? +const showAdminBoundaries = computed((): boolean => { + return props.censusGeographiesSelected && props.censusGeographiesSelected.length > 0 +}) + ///////////////// // Map events