UNPKG

@rsmap/vue3ol

Version:

使用 vue3 风格封装后的 Openlayer 地图组件库。

20 lines (18 loc) 1.07 kB
import { App } from 'vue'; import { default as OlStyle } from './OlStyle.vue'; import { default as OlStyleCircle } from './OlStyleCircle.vue'; import { default as OlStyleStroke } from './OlStyleStroke.vue'; import { default as OlStyleFill } from './OlStyleFill.vue'; import { default as OlStyleIcon } from './OlStyleIcon.vue'; import { default as OlStyleText } from './OlStyleText.vue'; import { default as OlStyleFlowline } from './OlStyleFlowline.vue'; import { FeatureLike } from 'ol/Feature'; import { Style } from 'ol/style'; import { Vue3OpenlayersGlobalOptions } from '../../types'; type OverrideStyleFunction = (feature: FeatureLike, currentStyle: Style, resolution: number) => Style | Style[] | void; declare function install(app: App, options?: Vue3OpenlayersGlobalOptions): void; declare module "@vue/runtime-core" { function inject(key: "ol-options"): Vue3OpenlayersGlobalOptions; } export default install; export { install, OlStyle, OlStyleStroke, OlStyleFill, OlStyleIcon, OlStyleText, OlStyleFlowline, OlStyleCircle, type OverrideStyleFunction, };