MapControl
class MapControl
Functions
Link copied to clipboard
Add a camera event listener, invoked when a camera event occurs (e.g.
Link copied to clipboard
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
open fun create(@NonNull mapConfig: MPIMapConfig, @NonNull onMapControlReadyListener: OnMapControlReadyListener)
Create a new MapControl instance.
Link copied to clipboard
Call this to deselect a location previously selected with selectLocation
Link copied to clipboard
Disables live data on a specific domainType
Link copied to clipboard
Enables live data on a specific domain and uses MapsIndoors standard graphic implementation
open fun enableLiveData(domainType: String, onLiveLocationUpdateListener: OnLiveLocationUpdateListener)
Enables live data on a specific domain
Link copied to clipboard
Get the currently selected building
Link copied to clipboard
Returns the current MPFloor of the current MPBuilding in focus
Link copied to clipboard
Returns the current selected floor index
Link copied to clipboard
Get the zoom level that MapsIndoors is currently using for display icons etc.
Link copied to clipboard
Get the currently selected venue
Link copied to clipboard
Get the floor selector control object.
Link copied to clipboard
Get a MPLocation by marker reference.
Link copied to clipboard
Gets the current map style of MapsIndoors tiles
Link copied to clipboard
Gets the Map View bottom padding
Link copied to clipboard
Gets the Map View right padding
Link copied to clipboard
Gets the Map View left padding
Link copied to clipboard
Gets the Map View top padding
Link copied to clipboard
Shows or hides the MPFloorSelectorInterface, i.e.
Link copied to clipboard
Returns the current state of the current MPFloorSelectorInterface.
Link copied to clipboard
Returns the current visibility state of the user location icon (blue dot)
Link copied to clipboard
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
Call this method from the parent Activity/Fragment's corresponding method.
Link copied to clipboard
Remove a camera event listener
Link copied to clipboard
Remove a floor update listener
Link copied to clipboard
Select a building, optionally move the camera to the given building
Link copied to clipboard
Sets the current visible floor to the given z-index one For floor names/z-index pairs check the value returned by getFloorHashMap
Link copied to clipboard
Selects a location based on a
MPLocation
object.Selects a location.
Link copied to clipboard
Select a venue, optionally move the camera to the given venue
Link copied to clipboard
Sets the given MPClusterIconAdapter handler
Link copied to clipboard
open fun setFilter(@NonNull locations: List<MPLocation>, @NonNull behavior: MPFilterBehavior): Boolean
open fun setFilter(@NonNull filter: MPFilter, @NonNull behavior: MPFilterBehavior, @Nullable successListener: MPSuccessListener)
Use this method to display temporary locations, not points of interests location.
Link copied to clipboard
Replaces the embedded FloorSelector with the given custom one.
Link copied to clipboard
Use this method to highlight a list of MPLocation.
Link copied to clipboard
A convenience wrapper
Link copied to clipboard
Changes the styling of labels on the map.
Link copied to clipboard
Sets the text size of labels
Link copied to clipboard
Sets padding on the map.
Link copied to clipboard
Sets the map style for MapsIndoors tiles
Link copied to clipboard
open fun setOnCurrentBuildingChangedListener(onBuildingFoundAtCameraTargetListener: OnBuildingFoundAtCameraTargetListener)
Receive notifications when the current building changes
Link copied to clipboard
open fun setOnCurrentVenueChangedListener(@Nullable onVenueFoundAtCameraTargetListener: OnVenueFoundAtCameraTargetListener)
Receive notifications when the map camera target enters a MPVenue (its boundaries)
Link copied to clipboard
open fun setOnLocationClusterClickListener(onLocationClusterClickListener: OnLocationClusterClickListener)
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.
Link copied to clipboard
Set the marker click listener.
Link copied to clipboard
Set the marker info window click listener.
Link copied to clipboard
open fun setOnMarkerInfoWindowCloseListener(onMarkerInfoWindowCloseListener: MPOnInfoWindowClickListener)
Set the marker info window click listener.
Link copied to clipboard
Link copied to clipboard
Enables/disables the info window on user-selected locations The info window is shown by default when the user selects a location (by tapping on it)
Link copied to clipboard
Renders the icon set with updateDisplayRule at the last known user position on the map