Constructor
new Draw()
Extends
Methods
addTo(map) → {this}
- 描述:
添加到地图
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
map |
Map | 地图实例 |
Returns:
- Type
- this
disable() → {this}
- 描述:
关闭
Returns:
- Type
- this
discard() → {this}
- 描述:
从地图移除
- Overrides:
Returns:
- Type
- this
enable(name) → {this}
- 描述:
开启
Parameters:
Name | Type | Description |
---|---|---|
name |
String | 编辑器名称 |
Returns:
- Type
- this
toGeoJSON(feature) → {Object}
- 描述:
绘制图形转成geojson格式
Parameters:
Name | Type | Description |
---|---|---|
feature |
boolean | 是否为feature |
Returns:
- Type
- Object