GeometrySimplification

class GeometrySimplification

Options that impact the simplification of geometries framed for overview.

Simplifying geometries, especially for longer routes, can have a significant impact on the performance of generating frames and each MapboxNavigationViewportDataSource.evaluate calls.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

enabled
Link copied to clipboard
var enabled: Boolean = true
Preconditions:If true, the frames generated for overview will use a simplified route geometry.
simplificationFactor
Link copied to clipboard
var simplificationFactor: Int = 25
Determines how many points of each step's geometry should be removed from framing.