@mattilsynet/designsystem-svelte
Version:
Design system for Mattilsynet
12 lines (11 loc) • 737 B
TypeScript
import VectorLayer from 'ol/layer/Vector';
import VectorSource from 'ol/source/Vector';
import { type FeatureLike } from 'ol/Feature';
import { Style } from 'ol/style';
import type { Options } from 'ol/style/Icon';
import { type MTClusterOptions, type MTMarker } from '../../../ts';
export declare const LAYER_ID = "layerId";
export declare const VECTOR_LAYER_ID = "clusterLayer";
export declare function createClusterLayer(markers: Array<MTMarker>, options: MTClusterOptions, markerOptions?: Options): VectorLayer<VectorSource>;
export declare function createMarkerLayer(markers: Array<MTMarker>, markerOptions?: Options): VectorLayer<VectorSource>;
export declare function getClusterStyleFromMarkerStatus(feature: FeatureLike): Style;