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