MapControl
Functions
Link copied to clipboard
open fun addOnCameraEventListener(@NonNull onCameraEventListener: MPCameraEventListener)
Content copied to clipboard
Add a camera event listener, invoked when a camera event occurs (e.g.
Link copied to clipboard
open fun addOnFloorUpdateListener(onFloorUpdateListener: OnFloorUpdateListener)
Content 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
open fun create(@NonNull mapConfig: MPIMapConfig, @NonNull onMapControlReadyListener: OnMapControlReadyListener)
Content copied to clipboard
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)
Content copied to clipboard
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
open fun removeOnCameraEventListener(@NonNull onCameraEventListener: MPCameraEventListener)
Content copied to clipboard
Remove a camera event listener
Link copied to clipboard
open fun removeOnFloorUpdateListener(onFloorUpdateListener: OnFloorUpdateListener)
Content copied to clipboard
Remove a floor update listener
Link copied to clipboard
open fun selectBuilding(@NonNull building: MPBuilding, moveCamera: Boolean)
Content 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
open fun selectLocation(@Nullable location: MPLocation, behavior: MPSelectionBehavior)
Content copied to clipboard
Selects a location based on a
MPLocation
object.open fun selectLocation(locationId: String, behavior: MPSelectionBehavior)
Content copied to clipboard
Selects a location.
Link copied to clipboard
Select a venue, optionally move the camera to the given venue
Link copied to clipboard
open fun setClusterIconAdapter(locationClusterImageAdapter: MPClusterIconAdapter)
Content copied to clipboard
Sets the given MPClusterIconAdapter handler
Link copied to clipboard
open fun setFilter(@NonNull locations: List<MPLocation>, @NonNull behavior: MPFilterBehavior): Boolean
Content copied to clipboard
open fun setFilter( @NonNull filter: MPFilter, @NonNull behavior: MPFilterBehavior, @Nullable successListener: MPSuccessListener)
Content copied to clipboard
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
A convenience wrapper
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)
Content copied to clipboard
Receive notifications when the current building changes
Link copied to clipboard
open fun setOnCurrentVenueChangedListener(@Nullable onVenueFoundAtCameraTargetListener: OnVenueFoundAtCameraTargetListener)
Content copied to clipboard
Receive notifications when the map camera target enters a MPVenue (its boundaries)
Link copied to clipboard
open fun setOnLocationClusterClickListener(onLocationClusterClickListener: OnLocationClusterClickListener)
Content copied to clipboard
Sets the given OnLocationClusterClickListener handler
Link copied to clipboard
open fun setOnLocationSelectedListener(onLocationSelectedListener: OnLocationSelectedListener)
Content 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
open fun setOnMarkerClickListener(onMarkerClickListener: MPOnMarkerClickListener)
Content copied to clipboard
Set the marker click listener.
Link copied to clipboard
open fun setOnMarkerInfoWindowClickListener(onInfoWindowClickListener: MPOnInfoWindowClickListener)
Content copied to clipboard
Set the marker info window click listener.
Link copied to clipboard
open fun setOnMarkerInfoWindowCloseListener(onMarkerInfoWindowCloseListener: MPOnInfoWindowClickListener)
Content copied to clipboard
Set the marker info window click listener.
Link copied to clipboard
open fun setOnWillUpdateLocationsOnMap(listener: OnWillUpdateLocationsOnMap)
Content 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