MapOverlayRenderer

class MapOverlayRenderer(mMap: MapView, mapViewModel: MapViewModel) : PointInteractionListener

Constructors

Link copied to clipboard
constructor(mMap: MapView, mapViewModel: MapViewModel)

Types

Link copied to clipboard
data class SelectedPoint(var trackId: Int, var id: Double, var overlay: SimpleFastPointOverlay)
Link copied to clipboard
data class TrackRenderData(var polyline: Polyline, var overlay: CustomSimpleFastPointOverlay?, val indexMap: MutableMap<Double, Int>, val reverseIndexMap: MutableMap<Int, Double> = mutableMapOf())

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun displayLiveModification(waypoints: List<Pair<Double, Double>>, trackId: Int, color: Int)

Display live modifications of moving track point

Link copied to clipboard
fun displayLiveModificationDone(waypoint: Pair<Double, Double>, trackId: Int, pointId: Double)

Display the modified track (point moved by user)

Link copied to clipboard
fun displayNewAddedPoint(waypoint: SimpleWaypoint, trackId: Int)

Display full track (e.g. after import)

Link copied to clipboard
fun displayTrack(trackId: Int, color: Int, center: Boolean)

TODO For already in polylines

fun displayTrack(waypoints: List<SimpleWaypoint>, trackId: Int, color: Int, center: Boolean)

Display full track (e.g. after import) Create UI track from scratch

Link copied to clipboard
fun editColor(color: Int, alpha: Int, saturation: Float, value: Float): Int
Link copied to clipboard
Link copied to clipboard
open override fun onPointClicked(selectedBundle: MovingPointBundle)
Link copied to clipboard
open override fun onPointMoved(selectedBundle: MovingPointBundle)

When user moves point, renderer listens for move notification. (Called by CustomSimpleFastPointOverlay)

Link copied to clipboard
Link copied to clipboard
fun selectTrack(trackId: Int?, select: Boolean, pointId: Double? = null)
Link copied to clipboard

Pure map settings