@smartmaps/smartmaps-gl / GeolocateControl
Class: GeolocateControl
Nur auf Englisch verfügbar
Diese Seite gehört zur technischen API-Referenz. Sie wird automatisch aus dem Quellcode erzeugt und liegt daher ausschließlich auf Englisch vor. Die einführenden Seiten und Leitfäden sind auf Deutsch verfügbar.
This Control provides a button that uses the browser's geolocation API to locate the user on the map.
Remarks
- can be activated/disabled with the geolocateControl option MapOptions
Extends
GeolocateControl
Constructors
Constructor
new GeolocateControl(
options):GeolocateControl
Parameters
options
Returns
GeolocateControl
Overrides
MaplibreGeolocateControl.constructor
Methods
onAdd()
onAdd(
map):HTMLElement
IControl.onAdd
Parameters
map
Map$1
Returns
HTMLElement
Overrides
MaplibreGeolocateControl.onAdd