Example:
const constantProperty = ...;
const sampledProperty = ...;
//Create a composite property from two previously defined properties
//where the property is valid on August 1st, 2012 and uses a constant
//property for the first half of the day and a sampled property for the
//remaining half.
const composite = new Cesium.CompositeProperty();
composite.intervals.addInterval(Cesium.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T00:00:00.00Z/2012-08-01T12:00:00.00Z',
data : constantProperty
}));
composite.intervals.addInterval(Cesium.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T12:00:00.00Z/2012-08-02T00:00:00.00Z',
isStartIncluded : false,
isStopIncluded : false,
data : sampledProperty
}));
See:
Members
readonly definitionChanged : Event
获取此属性的定义发生更改时引发的事件。
每当使用不同的数据调用 setValue 时,定义都会更改
比当前值。
获取 interval 集合。
获取一个值,该值指示此属性是否为 constant。 将属性视为
常量(如果 getValue 始终为当前定义返回相同的结果)。
Methods
将此属性与提供的属性进行比较,并返回
true
,否则为 false
。
Name | Type | Description |
---|---|---|
other |
Property | optional 另一个属性。 |
Returns:
true
如果左和右相等,否则false
。
获取属性在提供的时间的值。
Name | Type | Default | Description |
---|---|---|---|
time |
JulianDate |
JulianDate.now()
|
optional 检索值的时间。如果省略,则使用当前系统时间。 |
result |
object | optional 要将值存储到的对象,如果省略,则创建并返回一个新实例。 |
Returns:
修改后的结果参数或者,如果未提供 result 参数,则为新实例。