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.
Parameters
Section titled “Parameters”OlUserLocationLayerProps
All OpenLayers Geolocation options plus custom props
Returns
Section titled “Returns”Element
Example
Section titled “Example”<OlMap> <OlUserLocationLayer visible={true} trackingOptions={{ enableHighAccuracy: true }} /></OlMap>