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)
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-02-22 17:53:54

results matching ""

    No results matching ""