Property

abstract new Cesium.Property()

所有属性的接口,表示可以随时间可选变化的值。 此类型定义接口,无法直接实例化。
See:

Members

readonly definitionChanged : Event

获取当此属性的定义更改时引发的事件。如果对 getValue 的调用对相同时间返回不同结果,则认为定义已更改。

readonly isConstant : boolean

获取一个值,指示此属性是否为常量。如果 getValue 对当前定义始终返回相同结果,则属性被视为常量。

Methods

equals(other)boolean

将此属性与提供的属性进行比较,如果相等则返回 true,否则返回 false
Name Type Description
other Property optional 另一个属性。
Returns:
如果左右相等则返回 true,否则返回 false

getValue(time, result)object

获取属性在指定时间的值。
Name Type Default Description
time JulianDate JulianDate.now() optional 用于检索值的时间。如果省略,则使用当前系统时间。
result object optional 用于存储值的对象,如果省略,则创建并返回新实例。
Returns:
修改后的结果参数,如果未提供结果参数,则返回新实例。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.