core/models. MapModel

This model is used to store the relevant values for map views (2D or 3D), such as camera options


new MapModel(attributes)

Name Type Description
attributes Object The attributes of the model instance
Name Type Attributes Description
center Array.<Number> <optional>
The center of the view
zoom Number <optional>
The zoomlevel of the view
tool string <optional>
The currently selected tool
isZooming bool <optional>
Indicator whether the map is currently zooming
isPanning bool <optional>
Indicator whether the map is currently panning
heading Number <optional>
The heading
pitch Number <optional>
The pitch
roll Number <optional>
The roll
displayMode string <optional>
The display mode of the map. One of 'map', 'columbus' and 'globe'