添加点
Apr 25, 2017
添加单点
addPoint(point,options)
参数:
{Object} point标准空间要素{Object} attributes属性信息,用于气泡展示等其他要素{String} id || IDid必传
{ol.geom.Geometry}空间位置信息{String}要素类型
{Object} options相关参数{String} layerName图层name
用法:
1<button onclick="addPoint()">添加点</button>
|
|
添加多点
addPoints(points,options)
参数:
{Array} points标准空间要素数组{Object} options相关参数
用法:
1<button onclick="addPoints()">添加多点</button>
|
|
事件
通过id移除点
removePointById(id)通过layerName移除图层
removeFeatureByLayerName(layerName)