vue3-openlayers
Version:
OpenLayers Wrapper for Vue3
85 lines (84 loc) • 4.54 kB
TypeScript
import { default as AnimatedCluster } from 'ol-ext/layer/AnimatedCluster';
import { Options } from 'ol/layer/Vector';
import { default as VectorSource, VectorSourceEvent } from 'ol/source/Vector';
import { LayerSwitcherOptions } from '../../types';
import { DefineComponent, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
import { Map, Feature } from 'ol';
import { default as __DTS_DEFAULT_0__ } from 'ol/events/Event';
import { ObjectEvent } from 'ol/Object';
import { Geometry } from 'ol/geom';
import { default as __DTS_DEFAULT_1__ } from 'ol/render/Event';
interface ClusterOptions extends Options<VectorSource> {
animationDuration?: number;
easingFunction?: (t: number) => number;
animationMethod?: (t: number) => number;
}
type Props = {
distance?: number;
} & ClusterOptions & LayerSwitcherOptions;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: DefineComponent<Props, {
vectorLayer: ShallowRef<AnimatedCluster, AnimatedCluster>;
map: Map | undefined;
}, {}, {}, {}, 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;
"change:extent": (event: ObjectEvent) => any;
"change:maxResolution": (event: ObjectEvent) => any;
"change:maxZoom": (event: ObjectEvent) => any;
"change:minResolution": (event: ObjectEvent) => any;
"change:minZoom": (event: ObjectEvent) => any;
"change:opacity": (event: ObjectEvent) => any;
"change:visible": (event: ObjectEvent) => any;
"change:zIndex": (event: ObjectEvent) => any;
sourceready: (event: __DTS_DEFAULT_0__) => any;
"change:source": (event: ObjectEvent) => any;
postrender: (event: __DTS_DEFAULT_1__) => any;
prerender: (event: __DTS_DEFAULT_1__) => any;
}, string, PublicProps, Readonly<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;
"onChange:extent"?: ((event: ObjectEvent) => any) | undefined;
"onChange:maxResolution"?: ((event: ObjectEvent) => any) | undefined;
"onChange:maxZoom"?: ((event: ObjectEvent) => any) | undefined;
"onChange:minResolution"?: ((event: ObjectEvent) => any) | undefined;
"onChange:minZoom"?: ((event: ObjectEvent) => any) | undefined;
"onChange:opacity"?: ((event: ObjectEvent) => any) | undefined;
"onChange:visible"?: ((event: ObjectEvent) => any) | undefined;
"onChange:zIndex"?: ((event: ObjectEvent) => any) | undefined;
onSourceready?: ((event: __DTS_DEFAULT_0__) => any) | undefined;
"onChange:source"?: ((event: ObjectEvent) => any) | undefined;
onPostrender?: ((event: __DTS_DEFAULT_1__) => any) | undefined;
onPrerender?: ((event: __DTS_DEFAULT_1__) => any) | undefined;
}>, {}, {}, {}, {}, 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;
};
};