new Simplificator( [options])
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
options |
Object |
<optional> |
Extends
- ol.Object
Methods
-
_chainEdges(edges)
-
Chain edges backward
Parameters:
Name Type Description edges* Returns:
- Type
- Array.<ol.Feature>
-
getEdges()
-
Get source edge
-
getFeatures()
-
Get the simplified features
Returns:
- Type
- Array.<ol.Feature>
-
setFeatures(features [, round])
-
Set the features to process
Parameters:
Name Type Argument Description featuresArray.<ol.Feature> roundnumber <optional>
round features
-
simplify(tolerance)
-
Simplify edges using Douglas Peucker algorithm
Parameters:
Name Type Description tolerancenumber -
simplifyVisvalingam(options)
-
Simplify edges using Visvalingam algorithm
Parameters:
Name Type Description optionsObject Properties
Name Type Description algostring