MapControl

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Add a camera event listener, invoked when a camera event occurs (e.g. moved, idle)

Link copied to clipboard
fun addOnFloorUpdateListener(onFloorUpdateListener: OnFloorUpdateListener?)

Set up a listener object to catch floor changes made by either the user or the positioning service

Link copied to clipboard

Invoke this method to restore the map to its default state (POIs shown based on their display rules, etc.)

Link copied to clipboard

Invoke this method remove any currently highlighted locations

Link copied to clipboard

Call this to deselect a location previously selected with .selectLocation

Link copied to clipboard
fun disableLiveData(domainType: String)

Disables live data on a specific domainType

Link copied to clipboard
fun enableLiveData(domainType: String?, onLiveLocationUpdateListener: OnLiveLocationUpdateListener? = null)

Enables live data on a specific domain

Link copied to clipboard

Get a MPLocation by marker reference.

Link copied to clipboard
fun goTo(entity: MPEntity?)

fun goTo(entity: MPEntity?, maxZoom: Double?)

Focus the map on the given MPEntity. Examples of classes of type MPEntity are: MPVenue, MPBuilding, MPBuilding, MPLocation.

Link copied to clipboard

Shows or hides the MPFloorSelectorInterface, i.e. hiding the View from MapControl. The MapControl will still receive relevant events on floor updates, building change etc. The Interface will also receive the events, making it possible to show/hide in real time, without refreshing the map.

Link copied to clipboard
fun onDestroy()

Call this method from the parent Activity/Fragment's corresponding method.

Link copied to clipboard

Call this method from the parent Activity/Fragment's corresponding method.

Link copied to clipboard
fun onPause()

Call this method from the parent Activity/Fragment's corresponding method.

Link copied to clipboard
fun onRestoreInstanceState(savedInstanceState: Bundle?)

Call this method from the parent Activity/Fragment's corresponding method.

Link copied to clipboard
fun onResume()

Call this method from the parent Activity/Fragment's corresponding method.

Link copied to clipboard
fun onSaveInstanceState(outState: Bundle?)

Call this method from the parent Activity/Fragment's corresponding method.

Link copied to clipboard
fun onStart()

Call this method from the parent Activity/Fragment's corresponding method.

Link copied to clipboard
fun onStop()

Call this method from the parent Activity/Fragment's corresponding method.

Link copied to clipboard
fun refresh()

Immediately triggers rendering of MapsIndoors data

Link copied to clipboard

Remove a camera event listener

Link copied to clipboard

Remove a floor update listener

Link copied to clipboard
fun selectBuilding(building: MPBuilding?, moveCamera: Boolean)

Select a building, optionally move the camera to the given building

Link copied to clipboard
fun selectFloor(floorIndex: Int)

Sets the current visible floor to the given floor index one

Link copied to clipboard

Selects a location based on a MPLocation object. Use .deSelectLocation or send null instead of a MPLocation to un-select the location

fun selectLocation(locationId: String?, behavior: MPSelectionBehavior?)

Selects a location. Use .deSelectLocation to un-select the location

Link copied to clipboard
fun selectVenue(venue: MPVenue?, moveCamera: Boolean)

Select a venue, optionally move the camera to the given venue

Link copied to clipboard
fun setClusterIconAdapter(locationClusterImageAdapter: MPClusterIconAdapter?)

Sets the given MPClusterIconAdapter handler

Link copied to clipboard
fun setFilter(filter: MPFilter, behavior: MPFilterBehavior, successListener: MPSuccessListener?)

Use this method to display temporary locations, not points of interests location. Use .clearFilter to exit this state

Link copied to clipboard
fun setHighlight(locations: List<MPLocation>, behavior: MPHighlightBehavior)

Use this method to highlight a list of MPLocation. Use .clearHighlight to remove the highlight

Link copied to clipboard

A convenience wrapper

Link copied to clipboard
fun setMapLabelFont(typeface: Typeface)
fun setMapLabelFont(typeface: Typeface?, color: String?, showHalo: Boolean)

Changes the styling of labels on the map.

Link copied to clipboard
fun setMapLabelTextSize(textSize: Int)

Sets the text size of labels

Link copied to clipboard
fun setMapPadding(start: Int, top: Int, end: Int, bottom: Int)

Sets padding on the map. Please use this method when setting map view padding, as opposed to the Map's own setPadding() method. We forward the parameters to the Map object internally, and adjust MapsIndoors features on the map accordingly as well.

Link copied to clipboard

Receive notifications when the current building changes

Link copied to clipboard

Receive notifications when the map camera target enters a MPVenue (its boundaries)

Link copied to clipboard

Sets the given OnLocationClusterClickListener handler

Link copied to clipboard

Sets a listener for when a location gets selected (programmatically or user-triggered)

Link copied to clipboard

Set the map click listener. Should be added here instead of the providers setOnMapClickListener, because MapControl needs this event.

Link copied to clipboard

Set the marker click listener. Should be set here instead of using the providers setOnMarkerClickListener

Link copied to clipboard

Set the marker info window click listener. Should be added here instead of on the map itself, because MapControl needs this event.

Link copied to clipboard

Set the marker info window click listener. Should be added here instead of on the map itself, because MapControl needs this event.

Link copied to clipboard

Enables/disables the info window on user-selected locations

Link copied to clipboard

Renders the icon set with MPIPositionPresenter.updateDisplayRule at the last known user position on the map

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard