MapModel

core/models. MapModel

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

Constructor

new MapModel(attributes)

Parameters:
Name Type Description
attributes Object The attributes of the model instance
Properties
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>
<nullable>
The display mode of the map. One of 'map', 'columbus' and 'globe'
Source: