M P I Map View Interface
interface MPIMapViewInterface
Content copied to clipboard
This class contains methods that help to display and interact with a Mappedin venue
Functions
addInteractivePolygon
Link copied to clipboard
clearAllPolygonColors
Link copied to clipboard
abstract fun clearAllPolygonColors(completionCallback: (String?) -> Unit? = null)
Content copied to clipboard
clearJourney
Link copied to clipboard
abstract fun clearJourney()
Content copied to clipboard
Remove all paths and connection tooltips on the MPIMapView
createMarker
Link copied to clipboard
abstract fun createMarker(coordinate: MPIMap.MPICoordinate, contentHtml: String, markerOptions: MPIOptions.Marker = MPIOptions.Marker()): String
Content copied to clipboard
abstract fun createMarker(node: MPINavigatable.MPINode, contentHtml: String, markerOptions: MPIOptions.Marker = MPIOptions.Marker()): String
Content copied to clipboard
Creates a marker on a MPINavigatable.MPINode
disableBlueDot
Link copied to clipboard
abstract fun disableBlueDot()
Content copied to clipboard
drawJourney
Link copied to clipboard
abstract fun drawJourney(directions: MPIDirections, options: MPIOptions.Journey? = null)
Content copied to clipboard
Draws a journey on the MPIMapView
drawPath
Link copied to clipboard
abstract fun drawPath(path: List<MPINavigatable.MPINode>, pathOptions: MPIOptions.Path? = null)
Content copied to clipboard
Draws a path on the MPIMapView
enableBlueDot
Link copied to clipboard
abstract fun enableBlueDot(options: MPIOptions.BlueDot = MPIOptions.BlueDot())
Content copied to clipboard
focusOn
Link copied to clipboard
getDirections
Link copied to clipboard
abstract fun getDirections(to: MPIDestinationSet, from: MPINavigatable, accessible: Boolean = true, directionsCallback: (List<MPIDirections>?) -> Unit)
Content copied to clipboard
Get directions to a MPIDestinationSet (MPINavigatable.MPINode, MPINavigatable.MPILocation, MPINavigatable.MPIPolygon) from another MPINavigatable
abstract fun getDirections(to: MPINavigatable, from: MPINavigatable, accessible: Boolean = true, directionsCallback: (MPIDirections?) -> Unit)
Content copied to clipboard
Get directions to a MPINavigatable (MPINavigatable.MPINode, MPINavigatable.MPILocation, MPINavigatable.MPIPolygon) from another MPINavigatable
getNearestNodeByScreenCoordinates
Link copied to clipboard
abstract fun getNearestNodeByScreenCoordinates(x: Int, y: Int, map: MPIMap? = null, nearestNodeCallback: (MPINavigatable.MPINode?) -> Unit)
Content copied to clipboard
labelAllLocations
Link copied to clipboard
abstract fun labelAllLocations(options: MPIOptions.FlatLabelAllLocations? = null)
Content copied to clipboard
abstract fun labelAllLocations(options: MPIOptions.FloatingLabelAllLocations? = null)
Content copied to clipboard
labelPolygon
Link copied to clipboard
abstract fun labelPolygon(polygon: MPINavigatable.MPIPolygon, options: MPIOptions.FlatLabel)
Content copied to clipboard
Sets a flat label for MPINavigatable.MPIPolygon
abstract fun labelPolygon(polygon: MPINavigatable.MPIPolygon, options: MPIOptions.FloatingLabel)
Content copied to clipboard
Sets a floating label for MPINavigatable.MPIPolygon
abstract fun labelPolygon(polygonId: String, options: MPIOptions.FlatLabel)
Content copied to clipboard
Sets a flat label for MPINavigatable.MPIPolygon
abstract fun labelPolygon(polygonId: String, options: MPIOptions.FloatingLabel)
Content copied to clipboard
Sets a floating label for MPINavigatable.MPIPolygon
loadVenue
Link copied to clipboard
abstract fun loadVenue(options: MPIOptions.Init, showVenueOptions: MPIOptions.ShowVenue? = null, errorCallback: (MPIError?) -> Unit? = null)
Content copied to clipboard
Loads the venue based on the options passed in MPIMapView
Note: API calls will be made to retrieve the data
removeAllLabels
Link copied to clipboard
removeAllPaths
Link copied to clipboard
abstract fun removeAllPaths(completionCallback: (String?) -> Unit? = null)
Content copied to clipboard
Remove all paths on the MPIMapView
removeMarker
Link copied to clipboard
Removes a marker from a MPINavigatable.MPINode
Note: cannot remove a marker id that does not exist yet
setMap
Link copied to clipboard
setPolygonColor
Link copied to clipboard
abstract fun setPolygonColor(polygon: MPINavigatable.MPIPolygon, color: String, textColor: String? = null, opacity: Double = 1.0)
Content copied to clipboard
Sets the color of the MPINavigatable.MPIPolygon
abstract fun setPolygonColor(polygonId: String, color: String, textColor: String? = null, opacity: Double = 1.0)
Content copied to clipboard
Sets the color of the MPINavigatable.MPIPolygon
showVenue
Link copied to clipboard
abstract fun showVenue(venueResponse: MPIVenueResponse, showVenueOptions: MPIOptions.ShowVenue? = null, errorCallback: (MPIError?) -> Unit? = null)
Content copied to clipboard
Shows the venue based on the venue data and options passed in MPIMapView
Note: An alternative method to using loadVenue where no API calls will be made; instead, data must be passed in to showVenue which takes in a deserialized MPIVenueResponse
abstract fun showVenue(venueResponse: String, showVenueOptions: MPIOptions.ShowVenue? = null, errorCallback: (MPIError?) -> Unit? = null)
Content copied to clipboard
Shows the venue based on the venue data and options passed in MPIMapView
Note: An alternative method to using loadVenue where no API calls will be made; instead, data must be passed in to showVenue which takes in a data string
updatePosition
Link copied to clipboard
Inheritors
MPIMapView
Link copied to clipboard