UNPKG

@mattilsynet/designsystem-svelte

Version:

Design system for Mattilsynet

14 lines (13 loc) 665 B
import { Geolocation, type Map, type View } from 'ol'; import Feature from 'ol/Feature'; import { type Geometry } from 'ol/geom'; import VectorLayer from 'ol/layer/Vector'; import VectorSource from 'ol/source/Vector'; export declare const GEOLOCATION_LAYER_ID = "geolocationLayer"; export declare function setUpGeolocation(map: Map): { layer: VectorLayer<VectorSource<Feature<Geometry>>>; geolocation: Geolocation; }; export declare function getGeoLocation(view: View): Geolocation; export declare function addGeolocationListeners(geolocation: Geolocation, positionFeature: Feature, map: Map): void; export declare function addMyLocationFeature(): Feature;