Skip to content

Commit ae1f2f1

Browse files
committed
feat: export utility functions and types LayersCommonProps, layersCommonDefaultProps and useLayerDefaults for layers
1 parent 998a826 commit ae1f2f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/components/layers/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import {
2+
layersCommonDefaultProps,
3+
useDefaults,
4+
} from "@components/layers/LayersCommonProps";
5+
16
import type { App } from "vue";
27
import OlAnimatedClusterlayer from "./OlAnimatedClusterlayer.vue";
38
import OlHeatmapLayer from "./OlHeatmapLayer.vue";
@@ -10,6 +15,7 @@ import OlVectorImageLayer from "./OlVectorImageLayer.vue";
1015
import OlWebglTileLayer from "./OlWebglTileLayer.vue";
1116
import OlWebglVectorLayer from "./OlWebglVectorLayer.vue";
1217
import type { Vue3OpenlayersGlobalOptions } from "@/types";
18+
import type { LayersCommonProps } from "./LayersCommonProps";
1319

1420
function install(app: App, options?: Vue3OpenlayersGlobalOptions) {
1521
app.component("OlAnimatedClusterlayer", OlAnimatedClusterlayer);
@@ -46,4 +52,7 @@ export {
4652
OlVectorTileLayer,
4753
OlWebglTileLayer,
4854
OlWebglVectorLayer,
55+
type LayersCommonProps,
56+
layersCommonDefaultProps,
57+
useDefaults as useLayerDefaults,
4958
};

0 commit comments

Comments
 (0)