OlMapComponent

Root component for OpenLayers maps. Manages the map instance, view state, and provides dependency injection context for all child components.

TypeScriptexample.ts
import { OlMapComponent } from '@angular-helpers/openlayers'

# Inputs

InputTypeDefaultDescription
centerCoordinate[0, 0]Initial map center as [longitude, latitude]
zoomnumber0Initial zoom level
rotationnumber0Map rotation in radians (clockwise)
projectionstringEPSG:3857Projection code for the map view

# Outputs

OutputTypeDescription
viewChangeViewStateEmitted when the view changes (center, zoom, or rotation)
mapClickMapClickEventEmitted when the map is clicked
mapDblClickMapClickEventEmitted when the map is double-clicked
LCP N/A
CLS N/A
INP N/A