vue3-openlayers
Version:
OpenLayers Wrapper for Vue3
57 lines (56 loc) • 3.34 kB
TypeScript
import { default as VectorSource, Options, VectorSourceEvent } from 'ol/source/Vector';
import { default as VectorLayer } from 'ol/layer/Vector';
import { default as HeatmapLayer } from 'ol/layer/Heatmap';
import { default as WebGLVectorLayer } from 'ol/layer/WebGLVector';
import { Ref, DefineComponent, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
import { default as Feature } from 'ol/Feature';
import { Geometry } from 'ol/geom';
import { default as __DTS_DEFAULT_0__ } from 'ol/events/Event';
import { ObjectEvent } from 'ol/Object';
type __VLS_Props = Options<Feature>;
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, {
layer: Ref<VectorLayer<VectorSource<Feature< Geometry>>, Feature< Geometry>>, VectorLayer<VectorSource<Feature< Geometry>>, Feature< Geometry>>> | Ref<HeatmapLayer<Feature< Geometry>, VectorSource<Feature< Geometry>>>, HeatmapLayer<Feature< Geometry>, VectorSource<Feature< Geometry>>>> | Ref<WebGLVectorLayer<VectorSource<any>, any>, WebGLVectorLayer<VectorSource<any>, any>> | null;
source: ShallowRef<VectorSource<Feature< Geometry>>, VectorSource<Feature< Geometry>>>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
change: (event: __DTS_DEFAULT_0__) => any;
error: (event: __DTS_DEFAULT_0__) => any;
propertychange: (event: ObjectEvent) => any;
addfeature: (event: VectorSourceEvent<Feature< Geometry>>) => any;
changefeature: (event: VectorSourceEvent<Feature< Geometry>>) => any;
clear: (event: VectorSourceEvent<Feature< Geometry>>) => any;
removefeature: (event: VectorSourceEvent<Feature< Geometry>>) => any;
featuresloadstart: (event: VectorSourceEvent<Feature< Geometry>>) => any;
featuresloadend: (event: VectorSourceEvent<Feature< Geometry>>) => any;
featuresloaderror: (event: VectorSourceEvent<Feature< Geometry>>) => any;
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
onChange?: ((event: __DTS_DEFAULT_0__) => any) | undefined;
onError?: ((event: __DTS_DEFAULT_0__) => any) | undefined;
onPropertychange?: ((event: ObjectEvent) => any) | undefined;
onAddfeature?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined;
onChangefeature?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined;
onClear?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined;
onRemovefeature?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined;
onFeaturesloadstart?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined;
onFeaturesloadend?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined;
onFeaturesloaderror?: ((event: VectorSourceEvent<Feature< Geometry>>) => any) | undefined;
}>, {
wrapX: boolean;
overlaps: boolean;
useSpatialIndex: 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;
};
};