Fx构造函数
# new ArcGisMultipoint(options)
ArcGis服务
参数:
名称 | 类型 | 属性 | 描述 |
---|---|---|---|
options |
Object | 必选项,构造点对象参数。 |
|
points |
String |
<optional> |
可选项。点坐标数组, Example:[[x1,y1],[x2,y2]]。 |
spatialReference |
ArcGisSpatialReference |
<optional> |
可选项。多边形的空间坐标系,默认4326。 |
方法
# addPoint(point)
添加点坐标,可以为[x,y]坐标或者ArcGisPoint对象
参数:
名称 | 类型 | 描述 |
---|---|---|
point |
ArcGisPoint | 必选项,要查询的多边形序号,可为点坐标数组或者坐标或者ArcGisPoint对象数组。 |
# removePoint(index)
根据index删除一个ArcGisPoint对象
参数:
名称 | 类型 | 描述 |
---|---|---|
index |
Number | 必选项,要查询的点序号。 |
ArcGisPoint,点对象
# setPoint(index)
根据index,更新一个点对象
参数:
名称 | 类型 | 描述 |
---|---|---|
index |
Number | 必选项,在pointIndex处,更新这个点。 |
ArcGisMultipoint,线对象