For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias GeolocateControlEventType

GeolocateControlEventType - a mapping between the geolocate control event name and the event value. These events are used with the GeolocateControl.on method.

Index

Properties

Fired on each Geolocation API position update which returned as an error.

Fired on each Geolocation API position update which returned as success.

outofmaxbounds: GeolocatePositionEvent

Fired on each Geolocation API position update which returned as success but the user position is out of map maxBounds.

trackuserlocationend: GeolocateEvent

Fired when the geolocate control changes to the background state.

trackuserlocationstart: GeolocateEvent

Fired when the geolocate control changes to the active lock state.

userlocationfocus: GeolocateEvent

Fired when the geolocate control's button is clicked in the active lock state.

userlocationlostfocus: GeolocateEvent

Fired when the user changes the viewport while in the active lock state.

Was this helpful?