Skip to content

Commit 2e9e2a6

Browse files
committed
fix(ol-overlay): set correct default values as described in the docs
closes #346
1 parent ff7595f commit 2e9e2a6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/map/OlOverlay.vue

+7-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ defineOptions({
2727
inheritAttrs: false,
2828
});
2929
30-
const props = defineProps<Options>();
30+
const props = withDefaults(defineProps<Options>(), {
31+
positioning: "top-left",
32+
stopEvent: true,
33+
insertFirst: true,
34+
autoPan: false,
35+
className: "ol-overlay",
36+
});
3137
3238
const map = inject<Map>("map");
3339

0 commit comments

Comments
 (0)