GeolocateControlEventType
GeolocateControlEventType =
object
GeolocateControlEventType - a mapping between the geolocate control event name and the event value. These events are used with the GeolocateControl.on method.
Properties
error
error:
GeolocateErrorEvent
Fired on each Geolocation API position update which returned as an error.
geolocate
geolocate:
GeolocatePositionEvent
Fired on each Geolocation API position update which returned as success.
outofmaxbounds
outofmaxbounds:
GeolocatePositionEvent
Fired on each Geolocation API position update which returned as success but the user position is out of map maxBounds.
trackuserlocationend
trackuserlocationend:
GeolocateEvent
Fired when the geolocate control changes to the background state.
trackuserlocationstart
trackuserlocationstart:
GeolocateEvent
Fired when the geolocate control changes to the active lock state.
userlocationfocus
userlocationfocus:
GeolocateEvent
Fired when the geolocate control's button is clicked in the active lock state.
userlocationlostfocus
userlocationlostfocus:
GeolocateEvent
Fired when the user changes the viewport while in the active lock state.
© MapLibre contributors
Licensed under the 3-Clause BSD License.
https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/GeolocateControlEventType/