1. EarthRotation
地球自转
1.1. 初始化 new EarthRotation(options)
Param | Type | Default | Description |
---|---|---|---|
options | Object |
设置时钟的参数,如自转开始的时间,自转的速度等 |
|
[options.spinRate] | Number |
0.1 |
可选,地球自转速度,旋转相机,产生自转的效果,默认为0.1。 |
[options.multiplier] | Number |
1 |
可选,viewer.clock 转的速度,默认为1。 |
Example
let eR = new BOSGeo.EarthRotation({
spinRate: 100,
multiplier: 1,
})
1.2. 方法
1.2.1. earthRotation.start()
开始自转
Example
eR.start()
1.2.2. earthRotation.stop()
停止自转
Example
eR.stop()
1.2.3. earthRotation.remove()
移除