Skip to content

OlUserLocationLayer

OlUserLocationLayer(props): Element

Defined in: src/ol-user-location-layer.tsx:58

Layer component that displays the user’s current location on the map using the Geolocation API. Automatically tracks user position and updates a blue circle marker. Must be used within an OlMap.

OlUserLocationLayerProps

All OpenLayers Geolocation options plus custom props

Element

<OlMap>
<OlUserLocationLayer
visible={true}
trackingOptions={{ enableHighAccuracy: true }}
/>
</OlMap>