UNPKG

@rsmap/vue3ol

Version:

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

94 lines (92 loc) 3.78 kB
import { AtPixelOptions, default as Map, MapOptions } from 'ol/Map'; import { FeatureLike } from 'ol/Feature'; import { SimpleGeometry } from 'ol/geom'; import { Layer } from 'ol/layer'; import { Pixel } from 'ol/pixel'; import { Source } from 'ol/source'; import { Coordinate } from 'ol/coordinate'; import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue'; import { Collection } from 'ol'; import { Control } from 'ol/control'; declare function __VLS_template(): { default?(_: {}): any; }; declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MapOptions & { zLevelRange: number[][]; instance?: Map; }>, { controls: () => never[]; zLevelRange: () => number[][]; }>, { map: Map; mapRef: Ref<string | HTMLElement | undefined>; forEachFeatureAtPixel: (pixel: Pixel, callback: (arg0: FeatureLike, arg1: Layer<Source>, arg2: SimpleGeometry) => unknown, options?: AtPixelOptions) => unknown; getCoordinateFromPixel: (pixel: Coordinate) => Coordinate; render: () => void; updateSize: () => void; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "change:size": (...args: any[]) => void; "change:target": (...args: any[]) => void; "change:view": (...args: any[]) => void; singleclick: (...args: any[]) => void; click: (...args: any[]) => void; dblclick: (...args: any[]) => void; pointerdrag: (...args: any[]) => void; pointermove: (...args: any[]) => void; postrender: (...args: any[]) => void; movestart: (...args: any[]) => void; moveend: (...args: any[]) => void; precompose: (...args: any[]) => void; postcompose: (...args: any[]) => void; rendercomplete: (...args: any[]) => void; "change:layerGroup": (...args: any[]) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MapOptions & { zLevelRange: number[][]; instance?: Map; }>, { controls: () => never[]; zLevelRange: () => number[][]; }>>> & { onClick?: ((...args: any[]) => any) | undefined; onDblclick?: ((...args: any[]) => any) | undefined; onPointermove?: ((...args: any[]) => any) | undefined; "onChange:size"?: ((...args: any[]) => any) | undefined; "onChange:target"?: ((...args: any[]) => any) | undefined; "onChange:view"?: ((...args: any[]) => any) | undefined; onSingleclick?: ((...args: any[]) => any) | undefined; onPointerdrag?: ((...args: any[]) => any) | undefined; onPostrender?: ((...args: any[]) => any) | undefined; onMovestart?: ((...args: any[]) => any) | undefined; onMoveend?: ((...args: any[]) => any) | undefined; onPrecompose?: ((...args: any[]) => any) | undefined; onPostcompose?: ((...args: any[]) => any) | undefined; onRendercomplete?: ((...args: any[]) => any) | undefined; "onChange:layerGroup"?: ((...args: any[]) => any) | undefined; }, { zLevelRange: number[][]; controls: Collection<Control> | Control[]; }, {}>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };