simplificationToleranceInMeters property

int simplificationToleranceInMeters
getter/setter pair

Sets the accuracy limit for the PolylineSimplifier.simplify:

  • higher tolerance results in more simplification (fewer points);
  • lower tolerance keeps the line closer to its original shape.

If removing a point produces polyline, which deviates from the original one more than simplificationToleranceInMeters, then this point is left in the collection.

If specified tolerance will not allow to create a polyline conforming to PolylineSimplifierOptions.maxPoints, then simplificationToleranceInMeters is ignored.

Default value is equal to PolylineSimplifierOptions.simplificationInMeters14ZoomLevel.

Implementation

int simplificationToleranceInMeters;