The coordinates at the centre of the map view.
The heading of the camera, in degrees relative to true north.
The map point at the centre of the map view.
The span of the map view in map units.
The span of the map view in metres.
Whether the shift or control key needs to be held down for mouse wheel events to affect the map view.
If a mouse wheel event is handled by the map view, MapLayr will prevent the event's default action, stopping the browser window from scrolling. If the host web page contains custom scrolling logic, it is recommended that it checks that the event's defaultPrevented property is still false before it decides to apply that logic.
Whether the mouse wheel zooms the map.
If set to false, and neither the alt nor meta/command keys are held down, mouse wheel events will scroll the map instead of panning the map.
If the control key is held down, the map always zooms in regardless of this property.
Adds the given map layer to the map.
The map layer to add to the map view.
Removes the given map layer from the map view.
The map layer to remove.
The resolved colour transformation mode: override → map → fixed(0).
Overrides the colour transformation mode configured by the map. Set to null to use the map's configured mode.
The current colour transformation phase, between 0 (day) and 1 (night), derived from the resolved colorTransformationMode.
The resolved lights mode: override → map → fixed(1).
Overrides the lights mode configured by the map. Set to null to use the map's configured mode.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Optionaloptions: boolean | EventListenerOptionsAdjusts the camera using the specified options with an optional animation.
The new properties of the camera. A missing property indicates that that property of the camera shouldn't be affected.
The shapes which are drawn on the map.
Adds the given shape to the map.
The shape to add to the map view.
The user location markers which are drawn on the map.
Adds the given user location marker to the map.
The user location marker to add to the map view.
Removes the given user location marker from the map view.
The user location marker to remove.
An interactive instance of a map attached to the DOM.
Remarks
Call Map.attach to create instances of this class.
Fires
MapView#camerachange - Fired when the camera position, heading, or span changes.
Fires
MapView#click - Fired when the user clicks on the map. The event is a MapMouseEvent with map coordinates.
Fires
MapView#dblclick - Fired when the user double-clicks on the map. The event is a standard MouseEvent.