1. HeightLimitAnalysis

控高分析

1.1. new HeightLimitAnalysis(options)

Param Type Default Description
options Object

属性选项

[options.height] Number 0

指定分析的高度值

[options.positions] Array.<Number>

分析区域,经纬度组成的数组

[options.outlineColor] String '#fff'

控高平面的轮廓线颜色

[options.planeColor] String '#7E6C41'

控高平面的面颜色

[options.planeOpacity] Number 0.3

控高平面的面透明度

[options.highlightColor] String '#ff0000'

超出分析高度的tileset高亮颜色

[options.highlightOpacity] Number 0.4

超出分析高度的tileset高亮透明度

Example

let analyHeight = new BOSGeo.HeightLimitAnalysis({
    outlineColor: '#ccff00',
    planeColor: '#ccff00',
    planeOpacity: 0.2,
    highlightColor: '#00fff0',
    highlightOpacity: 0.8
})

1.2. 方法

1.2.1. heightLimitAnalysis.setHeight(val)

设置控高分析的高度

Param Type Description
val Number

高度值

Example

var analyHeight = new BOSGeo.HeightLimitAnalysis();
analyHeight.setHeight(val);

1.2.2. heightLimitAnalysis.setRegion(positions)

设置分析区域

Param Type Description
positions Array.<Number>

分析区域,经纬度组成的数组

Example

var analyHeight = new BOSGeo.HeightLimitAnalysis();
analyHeight.setRegion(positions);

1.2.3. heightLimitAnalysis.start()

开启控高分析

Example

var analyHeight = new BOSGeo.HeightLimitAnalysis({
    height: 10,
    positions: [
        116.3968, 39.9094,
        116.3976, 39.9094,
        116.3976, 39.91,
        116.3968, 39.91
    ]
});
analyHeight.start();

1.2.4. heightLimitAnalysis.update()

更新控高分析

Example

var analyHeight = new BOSGeo.HeightLimitAnalysis({
    height: 10,
    positions: [
        116.3968, 39.9094,
        116.3976, 39.9094,
        116.3976, 39.91,
        116.3968, 39.91
    ]
});
analyHeight.setHeight(val);
analyHeight.update();

1.2.5. heightLimitAnalysis.clear()

清除控高分析

Example

var analyHeight = new BOSGeo.HeightLimitAnalysis({
    height: 10,
    positions: [
        116.3968, 39.9094,
        116.3976, 39.9094,
        116.3976, 39.91,
        116.3968, 39.91
    ]
});
analyHeight.start();
analyHeight.clear();
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-02-22 17:53:54

results matching ""

    No results matching ""