1. BufferTool
1.1. new BufferTool(geomap)
缓冲分析工具
Param | Type | Description |
---|---|---|
geomap | GeoMap | GeoMap对象 |
Example
var buftool = new BufferTool(geomap);
1.2. 属性
属性名 | Type | Default | Description |
---|---|---|---|
show | Boolean | 是否可见 |
1.3. 方法
1.3.1. bufferTool.createBufferPlane(center, options)
创建缓冲区
Param | Type | Default | Description |
---|---|---|---|
center | Point | Line | Area | - | 基于点|线|面创建缓冲区 |
options | Object | - | - |
[options.radius] | Number | 500 | 缓冲区半径,单位米。 |
[options.color] | String | '#ffff00' | 缓冲区颜色 |
[options.opacity] | Number | 0.5 | 缓冲区不透明度 |
Example
var buftool = new BufferTool();
buftool.createCircleBuffer(center, centerObject, options);
1.3.2. bufferTool.createBufferBall(center, options)
创建缓冲球
Param | Type | Default | Description |
---|---|---|---|
center | Point | 基于点 |
|
options | Object | ||
[options.radius] | Number | 500 | 半径,单位米。 |
[options.color] | String | '#ffff00' | 颜色 |
[options.opacity] | Number | 0.5 | 不透明度 |
Example
var buftool = new BufferTool();
buftool.createCircleBuffer(center, centerObject, options);
1.3.3. bufferTool.remove(buffer)
删除一个缓冲区
1.3.4. bufferTool.removeAll()
清空所有缓冲区
1.3.5. bufferTool.destroy()
销毁缓冲区工具