@rsmap/vue3ol
Version:
使用 vue3 风格封装后的 Openlayer 地图组件库。
12 lines (10 loc) • 554 B
TypeScript
import { ComputedRef, Ref, ShallowRef } from 'vue';
import { default as BaseObject } from 'ol/Object';
export declare const COMMON_EVENTS: string[];
export declare const LAYER_EVENTS: string[];
export declare const TILE_SOURCE_EVENTS: string[];
export declare const IMAGE_SOURCE_EVENTS: string[];
export declare const FEATURE_EVENTS: string[];
export declare function useOpenLayersEvents(feature: BaseObject | Ref<BaseObject> | ShallowRef<BaseObject> | ComputedRef<BaseObject>, eventNames: string[]): {
updateOpenLayersEventHandlers: () => void;
};