Class: BufferSetting

SuperMap.BufferSetting

The BufferSetting class.

new SuperMap.BufferSetting(options)

BufferSetting.js, line 6
Name Type Description
options Object

The optional parameters.

Name Type Default Description
endType SuperMap.BufferEndType SuperMap.BufferEndType.FLAT optional

The buffer endpoint enumeration value.

leftDistance SuperMap.BufferDistance 100 optional

The left buffer distance.

rightDistance SuperMap.BufferDistance 100 optional

The right buffer distance.

semicircleLineSegment number 4 optional

The number of arc segment of the Round.

radiusUnit SuperMap.BufferRadiusUnit SuperMap.BufferRadiusUnit.METER optional

Unit of buffer radius.

Members

The buffer endpoint enumeration value. It consists flat and round two types, namely, the SuperMap.REST.BufferEndType.FLAT.

Default Value:
SuperMap.BufferEndType.FLAT

The buffer distance on the left side. When it's GeometryBufferAnalyst, the unit is the same with the coordinate system of the default map(e.g., 3857 is meter, 4326 is degree); when it's DatasetBufferAnalyst, the unit is set by BufferSetting.radiusUnit ( the default is meter).

Default Value:
100
Default Value:
SuperMap.BufferRadiusUnit.METER

The buffer distance on the left side. When it's GeometryBufferAnalyst, the unit is the same with the coordinate system of the default map(e.g., 3857 is meter, 4326 is degree); when it's DatasetBufferAnalyst, the unit is set by BufferSetting.radiusUnit ( the default is meter).

Default Value:
100

semicircleLineSegmentnumber

The number of arc segment of the Round, that is, with how many arc segments to simulate a semicircle.

Default Value:
4

Methods

destroy()

BufferSetting.js, line 65

Disposes the resource. The property that references resource is set to null.