vue3-openlayers
Version:
OpenLayers Wrapper for Vue3
47 lines (46 loc) • 2.19 kB
TypeScript
import { default as VectorTileSource, Options } from 'ol/source/VectorTile';
import { default as VectorTileLayer } from 'ol/layer/VectorTile';
import { Ref, DefineComponent, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
import { default as __DTS_DEFAULT_0__ } from 'ol/render/Feature';
import { default as __DTS_DEFAULT_1__ } from 'ol/events/Event';
import { ObjectEvent } from 'ol/Object';
import { TileSourceEvent } from 'ol/source/Tile';
type __VLS_Props = Options;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: DefineComponent<__VLS_Props, {
vectorTileLayer: Ref<VectorTileLayer<VectorTileSource<any>, any>, VectorTileLayer<VectorTileSource<any>, any>> | null;
source: ShallowRef<VectorTileSource< __DTS_DEFAULT_0__>, VectorTileSource< __DTS_DEFAULT_0__>>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
change: (event: __DTS_DEFAULT_1__) => any;
error: (event: __DTS_DEFAULT_1__) => any;
propertychange: (event: ObjectEvent) => any;
tileloadend: (event: TileSourceEvent) => any;
tileloaderror: (event: TileSourceEvent) => any;
tileloadstart: (event: TileSourceEvent) => any;
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
onChange?: ((event: __DTS_DEFAULT_1__) => any) | undefined;
onError?: ((event: __DTS_DEFAULT_1__) => any) | undefined;
onPropertychange?: ((event: ObjectEvent) => any) | undefined;
onTileloadend?: ((event: TileSourceEvent) => any) | undefined;
onTileloaderror?: ((event: TileSourceEvent) => any) | undefined;
onTileloadstart?: ((event: TileSourceEvent) => any) | undefined;
}>, {
wrapX: boolean;
attributionsCollapsible: boolean;
overlaps: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};