HeightLimited

new Cesium.HeightLimited(viewer, options)

限高分析
Name Type Description
viewer Viewer 视图
options Object 包含以下属性的对象
Name Type Default Description
posArray Number 执行限高分析边界,坐标为经纬度坐标,点个数大于2
limitedColor Color Color.RED.withAlpha(0.7) optional 限高区域颜色
polygonColor Color Color.WHITE.withAlpha(0.7) optional 限高区域辅助面颜色
useOutLine Boolean true optional 限高区域辅助面外边线
height Number 10 optional 限高高度
blendTransparency Number 0.8 optional 限高颜色混合比例0-1
Example:
var pnts = [
    new Cesium.Cartesian3(115.03481079096245, 27.007844388021834, 0.0),
    new Cesium.Cartesian3(115.03481079096245, 27.006646020977758, 0.0),
    new Cesium.Cartesian3(115.03610070479618, 27.006646020977758, 0.0),
    new Cesium.Cartesian3(115.03610070479618, 27.007844388021834, 0.0)
];

var heightLimited = new Cesium.HeightLimited(viewer,{
    height: 0.0,
    limitedColor: new Cesium.Color(1, 0, 0, 0.5),
    polygonColor: Color.WHITE.withAlpha(0.7),
    blendTransparency: 0.8,
    posArray: pnts
});
// 添加限高
heightLimited.add();
// 移除限高
heightLimited.remove();

Members

辅助面高度

Methods

执行限高分析
移除限高分析