TrackRenderData

data class TrackRenderData(var polyline: Polyline, var overlay: CustomSimpleFastPointOverlay?, val indexMap: MutableMap<Double, Int>, val reverseIndexMap: MutableMap<Int, Double> = mutableMapOf())

Constructors

Link copied to clipboard
constructor(polyline: Polyline, overlay: CustomSimpleFastPointOverlay?, indexMap: MutableMap<Double, Int>, reverseIndexMap: MutableMap<Int, Double> = mutableMapOf())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var polyline: Polyline
Link copied to clipboard

Functions

Link copied to clipboard
fun insertId(id: Double): Int

Insert a new id into the indexMap, shifting indices as needed. Returns the correct index where it should be placed.

Link copied to clipboard
fun removeId(id: Double): Int?

Remove id from maps

Link copied to clipboard
fun removeIndex(start: Int, end: Int)