WaySimplifyFilter class

A filter that simplifies way geometries using the Douglas-Peucker algorithm.

This is a crucial performance optimization that reduces the number of vertices in a way while preserving its general shape. The level of simplification is determined by a maximum allowed deviation in pixels, which is converted to a geographical distance based on the current zoom level and latitude.

Constructors

WaySimplifyFilter(int zoomlevel, double maxDeviationPixel)

Properties

dpl → DouglasPeuckerLatLong
final
hashCode int
The hash code for this object.
no setterinherited
maxDeviationLatLong double?
getter/setter pair
maxDeviationPixel double
final
projection → PixelProjection
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduce(Wayholder wayholder) Wayholder
Reduces the complexity of all ways within a wayholder.
reduceWayEnsureMax(Waypath waypath) → Waypath
Reduces the complexity of a single waypath, ensuring that the resulting number of points does not exceed the maximum allowed (32767).
toString() String
A string representation of this object.
inherited

Operators

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