MapController

Controller class for managing the MapView and interacting with the map.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Clean up the route drawing on the map.

Link copied to clipboard
fun display(route: Route, destinationImage: BitmapDrawable, routeColor: Int? = null): Unit?

Display a route on the map.

Link copied to clipboard
fun displayUserPin(userLocations: List<UserLocation>): Unit?

Display user pins on the map.

Link copied to clipboard
fun dispose()

Dispose of the MapView and release associated resources.

Link copied to clipboard

Make the user track on the map invisible if already rendered.

Link copied to clipboard

Determines whether the user track has been rendered on the map.

Link copied to clipboard

Determines whether the user track is currently visible on the map.

Link copied to clipboard
fun load(map: Map)

Load a map onto the MapView.

Link copied to clipboard
fun removeUserTrack(completionCallback: CompletionCallback<Boolean>? = null): Unit?

Removes the user track feature layer from the map's operational layers.

Link copied to clipboard
fun renderUserTracks(userId: String? = null, venueId: String? = null, startTimeMilli: Long, endTimeMilli: Long, completionCallback: CompletionCallback<Boolean>? = null): Unit?

Renders the user track feature layer on the map.

Link copied to clipboard

Rotate the map to the north.

Link copied to clipboard
fun selectFeature(feature: Feature, autoZoom: Boolean = true): Unit?

Select a feature on the map.

Link copied to clipboard
Link copied to clipboard
fun setInitialViewpoint(isAnimated: Boolean = true): Unit?

Set the initial viewpoint of the map.

Link copied to clipboard
fun setMapView(mapView: MapView)

Set the MapView instance to be controlled by this controller.

Link copied to clipboard

Make the user track on the map visible if already rendered.

Link copied to clipboard
fun startLocationDisplay(listener: LocationDisplayErrorListener? = null, customLocationDataSource: LocationDataSource? = null): Unit?

Start displaying the current user's location on the map.

Link copied to clipboard
fun startNavigation(route: Route, destinationImage: BitmapDrawable, traversedRouteColor: Int? = null, remainingRouteColor: Int? = null): RouteTracker?

Start navigation on the map using a given route.

Link copied to clipboard

Stop the current navigation on the map.

Link copied to clipboard
fun unload()

Unload the currently loaded map from the MapView.

Link copied to clipboard

Unselect the currently selected feature on the map.

Link copied to clipboard
fun zoomToGps(): Unit?

Zoom to the current user's location.

Properties

Link copied to clipboard

Check if the map is currently at the default rotation.