CompositeProperty

new Cesium.CompositeProperty()

一个由 Property 定义的 TimeIntervalCollection,其中每个 TimeInterval 的 data 属性是另一个 Property 实例,在 提供的时间点被计算。
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

获取每当此属性的定义发生变化时触发的事件。 只要使用与当前值不同的数据调用 setValue,定义就会发生改变。
获取区间集合。
获取一个指示此属性是否为常量的标志。如果 getValue 对当前定义 始终返回相同结果,则该属性被视为常量。

Methods

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

getValue(time, result)object

获取属性在提供的时间点的值。
Name Type Default Description
time JulianDate JulianDate.now() optional 要获取值的时间。如果省略,则使用当前系统时间。
result object optional 用于存储值的对象;如果省略,则创建并返回新实例。
Returns:
被修改的结果参数;如果未提供结果参数,则为新实例。
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。.