AroundPoint

AroundPoint

绕点旋转类

Constructor

new AroundPoint(viewer, position, angle, amount, distance)

Description:
  • 构造函数

Source:
Parameters:
Name Type Description
viewer Object

地图场景对象

position Cartesian3

目标点坐标,笛卡尔坐标

angle Number

观察角度,-90为垂直正视,建议值区间[-30,-40]

amount Number

旋转360度所需要时间,单位:秒(s)

distance Number

点距离相机距离,单位:米(m)

Methods

destroy()

Description:
  • 注销对象

Source:

start() → {AroundPoint}

Description:
  • 开始旋转

Source:
Returns:

绕点旋转对象

Type
AroundPoint

stop() → {AroundPoint}

Description:
  • 停止旋转

Source:
Returns:

绕点旋转对象

Type
AroundPoint