new L.supermap.BufferSetting(options)
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The optional parameters.
|
Members
-
endTypeL.supermap.BufferEndType
-
The buffer endpoint enumeration value. It consists flat and round two types, namely, the L.supermap.BufferEndType.FLAT.
- Default Value: L.supermap.BufferEndType.FLAT
leftDistanceL.supermap.BufferDistance
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
radiusUnitL.supermap.BufferRadiusUnit
Buffer radius unit, can be L.supermap.BufferRadiusUnit.METER
、L.supermap.BufferRadiusUnit.MILIMETER
、
L.supermap.BufferRadiusUnit.CENTIMETER
、L.supermap.BufferRadiusUnit.DECIMETER
、L.supermap.BufferRadiusUnit.KILOMETER
、
L.supermap.BufferRadiusUnit.FOOT
、L.supermap.BufferRadiusUnit.INCH
、L.supermap.BufferRadiusUnit.MILE
、L.supermap.BufferRadiusUnit.YARD
.
Only valid for BufferAnalyst.
- Default Value: L.supermap.BufferRadiusUnit.METER
rightDistanceL.supermap.BufferDistance
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.