@rsmap/vue3ol
Version:
使用 vue3 风格封装后的 Openlayer 地图组件库。
76 lines (74 loc) • 2.55 kB
TypeScript
import { default as WMTS, Options, RequestEncoding } from 'ol/source/WMTS';
import { default as WMTSTileGrid } from 'ol/tilegrid/WMTS';
import { Ref, DefineComponent, ShallowRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
import { default as TileSource } from 'ol/source/Tile';
import { default as TileLayer } from 'ol/layer/Tile';
import { Tile } from 'ol';
import { Projection } from 'ol/proj';
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Omit<Options, "style"> & {
styles?: string | unknown[];
tileZoomLevel?: number;
tileMatrixPrefix?: string;
tileGrid?: WMTSTileGrid;
capabilitiesUrl: string;
}>, {
attributionsCollapsible: boolean;
tileZoomLevel: number;
projection: string;
reprojectionErrorThreshold: number;
tilePixelRatio: number;
format: string;
version: string;
requestEncoding: string;
wrapX: boolean;
tileMatrixPrefix: string;
}>, {
tileLayer: Ref<TileLayer<TileSource< Tile>>> | null | undefined;
source: ShallowRef<WMTS>;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Omit<Options, "style"> & {
styles?: string | unknown[];
tileZoomLevel?: number;
tileMatrixPrefix?: string;
tileGrid?: WMTSTileGrid;
capabilitiesUrl: string;
}>, {
attributionsCollapsible: boolean;
tileZoomLevel: number;
projection: string;
reprojectionErrorThreshold: number;
tilePixelRatio: number;
format: string;
version: string;
requestEncoding: string;
wrapX: boolean;
tileMatrixPrefix: string;
}>>>, {
wrapX: boolean;
projection: string | Projection;
format: string;
reprojectionErrorThreshold: number;
version: string;
attributionsCollapsible: boolean;
requestEncoding: RequestEncoding;
tilePixelRatio: number;
tileZoomLevel: number;
tileMatrixPrefix: string;
}, {}>;
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];
} & {};