Class: BufferSetting

mapboxgl.supermap.BufferSetting

The BufferSetting class.

new mapboxgl.supermapBufferSetting(options)

BufferSetting.js, line 6
Name Type Description
options Object

The optional parameters.

Name Type Default Description
endType mapboxgl.supermapBufferEndType mapboxgl.supermapBufferEndType.FLAT optional

The buffer endpoint enumeration value.

leftDistance mapboxgl.supermapBufferDistance 100 optional

The left buffer distance.

rightDistance mapboxgl.supermapBufferDistance 100 optional

The right buffer distance.

semicircleLineSegment number 4 optional

The number of arc segment of the Round.

radiusUnit mapboxgl.supermapBufferRadiusUnit mapboxgl.supermapBufferRadiusUnit.METER optional

Unit of buffer radius.

Members

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

Default Value:
mapboxgl.supermapBufferEndType.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:
mapboxgl.supermapBufferRadiusUnit.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.