UNPKG

@rsmap/vue3ol

Version:

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

43 lines (41 loc) 1.56 kB
import { Ref, DefineComponent, ShallowRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue'; import { default as WebGLPointsLayer } from 'ol/layer/WebGLPoints'; import { default as VectorSource, Options } from 'ol/source/Vector'; import { Feature } from 'ol'; import { Geometry } from 'ol/geom'; declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Options>, { overlaps: boolean; projection: string; useSpatialIndex: boolean; wrapX: boolean; }>, { layer: Ref<WebGLPointsLayer<VectorSource< Feature<Geometry>>>> | null | undefined; source: ShallowRef<VectorSource< Feature<Geometry>>>; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Options>, { overlaps: boolean; projection: string; useSpatialIndex: boolean; wrapX: boolean; }>>>, { wrapX: boolean; overlaps: boolean; useSpatialIndex: boolean; }, {}>; 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]; } & {};