ArcGisPoint Class

ArcGis.ArcGisPoint(options)

Fx构造函数

# new ArcGisPoint(options)

生成Point对象

参数:
名称 类型 属性 描述
options Object

必选项,构造点对象参数。

latitude String <optional>

可选项。纬度。

longitude String <optional>

可选项。经度。

m String <optional>

可选项。m值。

x String <optional>

可选项。x值,单位米。

y String <optional>

可选项。y值,单位米。

z String <optional>

可选项。z值,单位米。

作者:
  • 基础平台-杨琨

查看源代码 service/ArcGis/Point.js, line 8

方法

# copy(point)

复制point的所有值,并覆盖当前对象

参数:
名称 类型 描述
point ArcGisPoint

必选项,查询参数。

作者:
  • 基础平台-杨琨

查看源代码 service/ArcGis/Point.js, line 98

# distance(point)

根据两个point的x、y、z值,算出两点的距离

参数:
名称 类型 描述
point ArcGisPoint

必选项,查询参数。

作者:
  • 基础平台-杨琨

查看源代码 service/ArcGis/Point.js, line 108

Number,两点距离

# equals(point)

判断两个点是否相等,判断条件为x、y、z、m以及坐标系都相等

参数:
名称 类型 描述
point ArcGisPoint

必选项,查询参数。

作者:
  • 基础平台-杨琨

查看源代码 service/ArcGis/Point.js, line 123

Boolean,是否相等

# toArray()

返回[x,y]坐标数组,如果有z值,则返回[x,y,z]

作者:
  • 基础平台-杨琨

查看源代码 service/ArcGis/Point.js, line 83

[x,y,z]坐标数组

# toGeometryJSON()

将坐标转为特定格式,供IdentifyTask使用

作者:
  • 基础平台-杨琨

查看源代码 service/ArcGis/Point.js, line 135

String,包含点坐标的JSON字符串