类名 ArcGisMultipoint

# new ArcGisMultipoint(options)

ArcGis服务

参数

名称 类型 描述
options Object

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

points String

可选项。点坐标数组, Example:[[x1,y1],[x2,y2]]。

spatialReference ArcGisSpatialReference

可选项。多边形的空间坐标系,默认4326。

作者:
  • 基础平台-杨琨

方法

方法概述

名称 返回值类型 描述
addPoint

添加点坐标,可以为[x,y]坐标或者ArcGisPoint对象

getPoint

根据index返回ArcGisPoint对象

removePoint

根据index删除一个ArcGisPoint对象

setPoint

根据index,更新一个点对象

toGeometryJSON

将点坐标转换为Json对象

方法详情

# addPoint(point)

添加点坐标,可以为[x,y]坐标或者ArcGisPoint对象

参数

名称 类型 描述
point ArcGisPoint

必选项,要查询的多边形序号,可为点坐标数组或者坐标或者ArcGisPoint对象数组。

# getPoint(index)

根据index返回ArcGisPoint对象

参数

名称 类型 描述
index Number

必选项,要查询的点序号。

ArcGisPoint,点对象

# removePoint(index)

根据index删除一个ArcGisPoint对象

参数

名称 类型 描述
index Number

必选项,要查询的点序号。

ArcGisPoint,点对象

# setPoint(index)

根据index,更新一个点对象

参数

名称 类型 描述
index Number

必选项,在pointIndex处,更新这个点。

ArcGisMultipoint,线对象

# toGeometryJSON()

将点坐标转换为Json对象

String