1. Buffer
缓冲区类,该类型无法独立创建,只能通过缓冲区工具类BufferTool生成
1.1. 属性
属性名 | Type | Default | Description |
---|---|---|---|
opacity | Number | 不透明度 |
|
color | String | 十六进制的颜色字符串 |
1.2. 方法
1.2.1. buffer.within(position) ⇒ Boolean
判断是否落在缓冲区内。
Param | Type | Description |
---|---|---|
position | Array.<Number> | Cartesian3 | 坐标位置 |
Example
//创建地图:geomap
//创建点图层:pointLayer
//添加点 :point
const bufferTool = new BOSGeo.BufferTool(geomap);
const buffer = bufferTool.createBufferPlane(point);
const testPosition = [113, 24, 0.1]
buffer.within(testPosition)