Specifies a constraint on the minimum and maximum allowed camera altitude. Only valid for 3D.
Specifies the near and far webgl clip distances. Only valid for 3D.
constraints.clipDistance = {
// The near clip distance.
near: 100,
// The far clip distance.
far: 1000,
// Specifies the mode of the constraint which is either auto or manual.
// In auto mode, the near and far clip distance values are automatically determined.
// In manual mode, the near and far clip distance values are user defined.
mode: "manual"
}
The area in which the user is allowed to navigate laterally. Only Extent and Polygon geometry types are supported
An array of LODs. If not specified, this value is read from the Map. Only valid for 2D.
The maximum scale the user is allowed to zoom to within the view. Only valid for 2D.
The maximum zoom level the user is allowed to zoom to within the view. Only valid for 2D.
The minimum scale the user is allowed to zoom to within the view. Only valid for 2D.
The minimum zoom level the user is allowed to zoom to within the view. Only valid for 2D.
Indicates whether the user can rotate the map. Only valid for 2D.
When true, the view snaps to the next LOD when zooming in or out. When false, the zoom is continuous. Only valid for 2D.
Specifies a constraint on the amount of allowed tilting of the view. Only valid for 3D.
constraints.tilt = {
// Specifies the maximum amount of tilt (in degrees) allowed in the view and may range from 0.5 to 179.5
// degrees.
max: 100,
// Specifies the mode of the constraint.
// There are two possible values: auto or manual.
// In auto mode, the maximum tilt value is automatically determined based on the altitude of the view camera.
// In manual mode, the maximum tilt value is a user defined.
mode: "manual"
}
Documentation for instances of Constraints.