Skip to content

Commit

Permalink
Case study map has no selected layers by default now
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Kaggl committed Apr 23, 2024
1 parent 7e3e33f commit 47dcd62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/geo-map-toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { initialViewState } from "@/lib/geo-map/geo-map.config";
import { key } from "@/lib/geo-map/geo-map.context";
import { type BaseLayer } from "@/lib/geo-map/use-geo-map-base-layer";
import { isNonEmptyString } from "@/lib/is-nonempty-string";
import { useRoute } from "vue-router";
interface Item {
key: string;
Expand All @@ -31,7 +32,10 @@ const emit = defineEmits<{
const context = inject(key);
//
// Deselects all case study Layers by default
if (context && String(useRoute().name).includes("case-studies")) {
context.visibility.layers.value = new Set();
}
const layersLabel = "Layers";
Expand Down

0 comments on commit 47dcd62

Please sign in to comment.