Measurement

Measurement

空间分析主类

Constructor

new Measurement(viewer)

Description:
  • 构造函数

Source:
Parameters:
Name Type Description
viewer Object

地图场景对象

Members

_collection :Object

Description:
  • 空间量测集合,Entity类型,借助parent管理

Source:

空间量测集合,Entity类型,借助parent管理

Type:
  • Object

Methods

area(type, callback)

Description:
  • 面积量测

Source:
Parameters:
Name Type Description
type String

量测类型,line:空间,project:投影,onground:地表,elliptic:椭球

callback measureCallback

可选:回调函数

azimuth(callback)

Description:
  • 方位角量测

Source:
Parameters:
Name Type Description
callback triangleCallback

可选:回调函数

distance(type, callback)

Description:
  • 距离量测

Source:
Parameters:
Name Type Description
type String

量测类型,line:空间,project:投影,onground:地表,elliptic:椭球

callback measureCallback

可选:回调函数

height(callback)

Description:
  • 高差量测

Source:
Parameters:
Name Type Description
callback measureCallback

可选:回调函数

removeAll()

Description:
  • 清除所有量测结果

Source:

slopeAngle(callback)

Description:
  • 坡角量测

Source:
Parameters:
Name Type Description
callback triangleCallback

可选:回调函数

triangle(callback)

Description:
  • 三角量测

Source:
Parameters:
Name Type Description
callback triangleCallback

可选:回调函数

volume(callback)

Description:
  • 体积量测

Source:
Parameters:
Name Type Description
callback volumeCallback

可选:回调函数