We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5543929 commit 9cddeb9Copy full SHA for 9cddeb9
src/components/sources/OlSourceVector.vue
@@ -38,9 +38,16 @@ const props = withDefaults(
38
}
39
);
40
41
-const layer =
42
- inject<Ref<VectorSource<Geometry>> | null>("vectorLayer") ||
43
- inject("heatmapLayer");
+const vectorLayer = inject<Ref<VectorSource<Geometry>> | null>(
+ "vectorLayer",
+ null
44
+);
45
+const heatmapLayer = inject<Ref<VectorSource<Geometry>> | null>(
46
+ "heatmapLayer",
47
48
49
+const layer = heatmapLayer || vectorLayer;
50
+
51
const { properties } = usePropsAsObjectProperties(props);
52
53
const source = computed(
0 commit comments