Named map controls specific for each framework.
An instance of the EventEmitter class for listen and emit events
Named adapters for map layers through a generic interface.
Optional
mapOriginal map object of GIS framework (Leaflet.Map, Openlayers.Map, MaplibreGL.Map or other)
Static
controlStatic
layerStatic
MapTries to locate the user using the Geolocation API, firing a locationfound event with location data on success or a locationerror event on failure, and optionally sets the map view to the user's location with respect to detection accuracy (or to the world view if geolocation failed). Note that, if your page doesn't use HTTPS, this method will fail in modern browsers (Chrome 50 and newer) See Locate options for more details.
Optional
events: LocationEventsOptional
zoom: number
Parameters and methods that control the behavior of the map and the layers on it.