1. Sunlight

日照效果 日照分析效果,实现一天内日起日落效果。

1.1. 初始化 new Sunlight(options)

Param Type Default Description
options Object

配置

[options.multiplier] Number 1600*4

可选,viewer.clock 转的速度,默认为1600*4毫秒。

[options.startTime] Number 0

可选,viewer.clock 的开始时间,默认为0点。

[options.endTime] Number 24

可选,viewer.clock 的结束时间,默认为24点。

[options.shadows] Boolean true

可选,是否开启阴影,true开启,false关闭,默认为true。

Example

let sun = new BOSGeo.Sunlight({
    startTime: 0.0,
    endTime: 24,
    multiplier: 1600 * 4,
    shadows: true
})
sun.strat() //开启
sun.stop()  //关闭

1.2. 方法

1.2.1. sunlight.start()

日照开启

Kind : instance method of Sunlight Example

sun.strat() //开启

1.2.2. sunlight.stop()

日照旋转关闭

Example

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

results matching ""

    No results matching ""