BufferZone

BufferZone

缓冲区接口,不能直接实例化。

Constructor

(abstract) new BufferZone(options)

Author:
  • zpc
See:
Parameters:
Name Type Description
options Object 具有以下属性的对象:
Properties
Name Type Attributes Default Description
viewer Cesium.Viewer Cesium视景器。
bufferRadius Number <optional>
5 缓冲区半径。
unit String <optional>
BufferZone.KILOMETERS 缓冲区半径的单位,默认为 BufferZoneUnit.KILOMETERS。
Throws:
进行缓冲区分析前,必须引入turf.js空间分析库!
Type
Cesium.DeveloperError

Members

(static, constant) KILOMETERS :String

千米,返回”kilometers“字符串。
Type:
  • String

(static, constant) METERS :String

米,返回”meters“字符串。
Type:
  • String

(static, constant) MILES :String

英里,返回”miles“字符串。
Type:
  • String

bufferRadius :Number

Default Value:
  • 5.0
缓冲区半径
Type:
  • Number

unit :String

Default Value:
  • BufferZone.KILOMETERS
缓冲区半径单位。
Type:
  • String

Methods

calculateBufferZone()

计算并显示缓冲区

destroy()

销毁缓冲区实例对象。