倒影水
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
scene |
Scene | viewer中的scene对象 | |||||||||||||||||||||||||||
options |
Object |
optional
对象具有如下属性:
|
Examples:
const water = new Cesium.WaterReflecter(viewer.scene, {
positions:[116.9648,33.658527,116.9678990,33.6585,116.968,33.66125,116.9645,33.6612,],
height:30.0
});
viewer.scene.addReflectWater(water);
const loadPromise = Cesium.GeoJsonDataSource.load('data/vector/polygon/suzhouwater0807/layer.json');
loadPromise.then(function(dataSource) {
const entities = dataSource.entities.values;
for (let i = 0; i < entities.length; i++) {
let entity = entities[i];
let options = {
polygonHierarchy:entity.polygon._hierarchy._value,
height:30,
};
const water = new Cesium.WaterReflecter(viewer.scene,wtateoption);
viewer.scene.addReflectWater(water);
}
})
Members
获取对象的id
reflectBlendColor : Color
设置/获取水面倒影的融合颜色
设置/获取对象是否显示
waterColor : Color
设置/获取水面的颜色