Skip to content

Commit

Permalink
fix(ol-overlay): set correct default values as described in the docs
Browse files Browse the repository at this point in the history
closes #346
  • Loading branch information
d-koppenhagen committed May 12, 2024
1 parent ff7595f commit 2e9e2a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/map/OlOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ defineOptions({
inheritAttrs: false,
});
const props = defineProps<Options>();
const props = withDefaults(defineProps<Options>(), {
positioning: "top-left",
stopEvent: true,
insertFirst: true,
autoPan: false,
className: "ol-overlay",
});
const map = inject<Map>("map");
Expand Down

0 comments on commit 2e9e2a6

Please # to comment.