new ConstantProperty
A Property whose value never changes.
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Number | String | The property value. This parameter is only required if the value is not a number or string and does not have a clone function. |
Throws:
-
DeveloperError : value is required.
-
DeveloperError : clone is a required function.
Example
//Create a constant value from a Cartesian2 instance. var constantProperty = new ConstantProperty(new Cartesian2(10, 12));