Class: BufferSetting

ol.supermap.BufferSetting

The BufferSetting class.

new ol.supermap.BufferSetting(options)

BufferSetting.js, line 6
Name Type Description
options Object

The optional parameters.

Name Type Default Description
endType ol.supermap.BufferEndType ol.supermap.BufferEndType.FLAT optional

The buffer endpoint enumeration value.

leftDistance ol.supermap.BufferDistance 100 optional

The left buffer distance.

rightDistance ol.supermap.BufferDistance 100 optional

The right buffer distance.

semicircleLineSegment number 4 optional

The number of arc segment of the Round.

radiusUnit ol.supermap.BufferRadiusUnit ol.supermap.BufferRadiusUnit.METER optional

Unit of buffer radius.

Members

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

Default Value:
ol.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:
ol.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.