import TiltConstraint from "@arcgis/core/views/3d/constraints/TiltConstraint.js";const TiltConstraint = await $arcgis.import("@arcgis/core/views/3d/constraints/TiltConstraint.js");- Inheritance:
- TiltConstraint→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
See the properties table for a list of all the
properties that may be passed into the constructor.
Properties
Any properties can be set, retrieved or listened to. See the
Watch for changes
topic.
max
Property
- Type
- number
Specifies the maximum amount of tilt (in degrees) allowed in the view and may range from 0.5 to 179.5 degrees.
mode
Property
- Type
- "auto" | "manual"
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, constant value. Note: The mode
automatically changes to manual whenever
the max property is set.
- Default value
- "auto"
Methods
| Method | Signature | Class |
|---|---|---|
clone inherited | clone(): this |
clone
inherited Method
- Signature
-
clone (): this
Inherited from: ClonableMixin
Creates a deep clone of this object. Any properties that store values by reference will be assigned copies of the referenced values on the cloned instance.
- Returns
- this
A deep clone of the class instance that invoked this method.