PolylineSimplifierOptions class

Controls the strategy of PolylineSimplifier.simplify when reducing a size of polyline.

Constructors

PolylineSimplifierOptions()
Creates default options with PolylineSimplifierOptions.maxPoints equal to 0 and PolylineSimplifierOptions.simplificationToleranceInMeters equal to PolylineSimplifierOptions.simplificationInMeters14ZoomLevel.
PolylineSimplifierOptions.withMaxPointsAndTolerance(int maxPoints, int simplificationToleranceInMeters)
Creates options with explicitly specified PolylineSimplifierOptions.maxPoints and PolylineSimplifierOptions.simplificationToleranceInMeters.

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxPoints ↔ int
Sets the upper limit on the resulting collection for the PolylineSimplifier.simplify. Lower value results in the lower accuracy of the resulting polyline. If maxPoints is less than 2 then resulting polyline will not have an upper limit on the size and only PolylineSimplifierOptions.simplificationToleranceInMeters will be considered. When maxPoints is greater than size of the passed polyline then simplification algorithm will take into account only PolylineSimplifierOptions.simplificationToleranceInMeters.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
simplificationToleranceInMeters ↔ int
Sets the accuracy limit for the PolylineSimplifier.simplify:
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

simplificationInMeters14ZoomLevel → int
Value for simplification tolerance for 14 zoom level without significant artifacts.
final