UNPKG

hmpps-open-layers-map

Version:

A native Web Component for displaying maps using OpenLayers.

29 lines (28 loc) 1.08 kB
import type { FeatureCollection } from 'geojson'; import { OLMapInstance } from './map/open-layers-map-instance'; import { MapLibreMapInstance } from './map/maplibre-map-instance'; import type { ComposableLayer, LayerStateOptions } from './map/layers/base'; export declare class MojMap extends HTMLElement { private mapNonce; private adapter?; private layers; private shadow; private featureOverlay?; private geoJson; private mapInstance; constructor(); connectedCallback(): Promise<void>; get geojson(): FeatureCollection | null; get map(): unknown; get olMapInstance(): OLMapInstance | null; get maplibreMapInstance(): MapLibreMapInstance | null; addLayer<LNative>(layer: ComposableLayer<LNative>, layerStateOptions?: LayerStateOptions): LNative | undefined; removeLayer(id: string): void; getLayer(id: string): ComposableLayer<unknown> | undefined; closeOverlay(): void; private parseAttributes; private parseGeoJsonFromSlot; private initialiseMap; private getControlOptions; render(): void; }