1. SkyLine

天际线分析

1.1. new SkyLine(options)

Param Type Default Description
options Object

包含以下参数的Object对象:

[options.position] Array.<Number>

要观察的位置,[longitude,latitude, height],不设置时则直接定位到红线位置处。

[options.hpr] HeadingPitchRoll {heading: 0 ,pitch: 0.3,roll: 0}

要观察的位置相机方位角,单位为弧度,默认为{heading: 0 ,pitch: 0.3,roll: 0};

[options.color] String '#ff0000'

天际线颜色,默认为'#ff0000'。

Example

let skyline = new BOSGeo.Skyline({
    position: [113.00787890205515, 22.99050957365, 10.1], //要观察的位置,[longitude,latitude, height],不设置时则直接定位到红线位置处。
    color: '#ff0000', //天际线颜色,默认为'#ff0000'。
});

1.2. 方法

1.2.1. skyline.show()

展示。

Example

skyline.show();

1.2.2. skyline.clear()

清除天际线

Example

skyline.clear();
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-02-22 17:53:54

results matching ""

    No results matching ""