MPIMapViewInterface

interface MPIMapViewInterface

This class contains methods that help to display and interact with a Mappedin venue

Functions

addInteractivePolygon
Link copied to clipboard
abstract fun addInteractivePolygon(polygon: MPINavigatable.MPIPolygon)
Adds an interactive polygon (allows it to be clickable)
abstract fun addInteractivePolygon(polygonId: String)
Adds an interactive polygon (allows it to be clickable)
clearAllPolygonColors
Link copied to clipboard
abstract fun clearAllPolygonColors(completionCallback: (String?) -> Unit? = null)
Clears all
clearJourney
Link copied to clipboard
abstract fun clearJourney()
Remove all paths and connection tooltips on the MPIMapView
disableBlueDot
Link copied to clipboard
abstract fun disableBlueDot()
Disables the blue dot so it does not appear on the mapview
drawJourney
Link copied to clipboard
abstract fun drawJourney(directions: MPIDirections, options: MPIOptions.Journey? = null)
Draws a journey on the MPIMapView
drawPath
Link copied to clipboard
abstract fun drawPath(path: List<MPINavigatable.MPINode>, pathOptions: MPIOptions.Path? = null)
Draws a path on the MPIMapView
enableBlueDot
Link copied to clipboard
abstract fun enableBlueDot(options: MPIOptions.BlueDot = MPIOptions.BlueDot())
Enables the blue dot so it will appear if the location is in the venue
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
focusOn
Link copied to clipboard
abstract fun focusOn(focusOptions: MPIOptions.Focus)
Focus on a list of nodes and/or polygons provided in the focus options
getDirections
Link copied to clipboard
abstract fun getDirections(to: MPINavigatable, from: MPINavigatable, accessible: Boolean = true, directionsCallback: (MPIDirections?) -> Unit)
Get directions to an MPINavigatable (MPINode, MPILocation, MPIPolygon) from an MPINavigatable
getNearestNodeByScreenCoordinates
Link copied to clipboard
abstract fun getNearestNodeByScreenCoordinates(x: Int, y: Int, map: MPIMap? = null, nearestNodeCallback: (MPINavigatable.MPINode?) -> Unit)
Gets the nearest node by screen coordinates
hashCode
Link copied to clipboard
open fun hashCode(): Int
labelPolygon
Link copied to clipboard
abstract fun labelPolygon(polygon: MPINavigatable.MPIPolygon, options: MPIOptions.Label)
Sets a label for MPIPolygon
abstract fun labelPolygon(polygonId: String, options: MPIOptions.Label)
Sets a label for MPIPolygon
loadVenue
Link copied to clipboard
abstract fun loadVenue(options: MPIOptions.Init, showVenueOptions: MPIOptions.ShowVenue? = null)
Loads the venue based on the options passed in MPIMapView
removeAllLabels
Link copied to clipboard
abstract fun removeAllLabels()
Removes all labels
removeAllPaths
Link copied to clipboard
abstract fun removeAllPaths(completionCallback: (String?) -> Unit? = null)
Remove all paths on the MPIMapView
setMap
Link copied to clipboard
abstract fun setMap(map: MPIMap, completionCallback: (String?) -> Unit? = null)
Sets the MPIMap of the MPIMapView
abstract fun setMap(mapId: String, completionCallback: (String?) -> Unit? = null)
Sets the MPIMap of the MPIMapView
setPolygonColor
Link copied to clipboard
abstract fun setPolygonColor(polygon: MPINavigatable.MPIPolygon, color: String, textColor: String? = null, opacity: Double = 1.0)
Sets the color of the MPINavigatable.MPIPolygon
abstract fun setPolygonColor(polygonId: String, color: String, textColor: String? = null, opacity: Double = 1.0)
Sets the color of the MPINavigatable.MPIPolygon
showVenue
Link copied to clipboard
abstract fun showVenue(venueResponse: MPIVenueResponse, showVenueOptions: MPIOptions.ShowVenue? = null)
Shows the venue based on the venue data and options passed in MPIMapView
abstract fun showVenue(venueResponse: String, showVenueOptions: MPIOptions.ShowVenue? = null)
Shows the venue based on the venue data and options passed in MPIMapView
toString
Link copied to clipboard
open fun toString(): String
updatePosition
Link copied to clipboard
abstract fun updatePosition(position: MPIPosition)
Updates the position of the blue dot on the mapview

Inheritors

MPIMapView
Link copied to clipboard