vue3-openlayers
Version:
OpenLayers Wrapper for Vue3
53 lines (52 loc) • 2.83 kB
TypeScript
import { default as Cluster, Options } from 'ol/source/Cluster';
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';
import { VectorSourceEvent } from 'ol/source/Vector';
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<Cluster<Feature< Geometry>>, Cluster<Feature< Geometry>>> | null | undefined;
source: ShallowRef<Cluster<Feature< Geometry>>, Cluster<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;
}, {}, {}, {}, 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;
};
};