MapControl
Functions
Add a camera event listener, invoked when a camera event occurs (e.g. moved, idle)
Set up a listener object to catch floor changes made by either the user or the positioning service
Invoke this method to restore the map to its default state (POIs shown based on their display rules, etc.)
Invoke this method remove any currently highlighted locations
Call this to deselect a location previously selected with .selectLocation
Disables live data on a specific domainType
Enables live data on a specific domain
Get a MPLocation by marker reference.
Focus the map on the given MPEntity. Examples of classes of type MPEntity are: MPVenue, MPBuilding, MPBuilding, MPLocation.
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.
Call this method from the parent Activity/Fragment's corresponding method.
Call this method from the parent Activity/Fragment's corresponding method.
Call this method from the parent Activity/Fragment's corresponding method.
Remove a camera event listener
Remove a floor update listener
Select a building, optionally move the camera to the given building
Sets the current visible floor to the given floor index one
Selects a location based on a MPLocation object. Use .deSelectLocation or send null instead of a MPLocation to un-select the location
Selects a location. Use .deSelectLocation to un-select the location
Select a venue, optionally move the camera to the given venue
Sets the given MPClusterIconAdapter handler
Use this method to display temporary locations, not points of interests location. Use .clearFilter to exit this state
Use this method to highlight a list of MPLocation. Use .clearHighlight to remove the highlight
A convenience wrapper
Changes the styling of labels on the map.
Sets the text size of labels
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.
Receive notifications when the current building changes
Receive notifications when the map camera target enters a MPVenue (its boundaries)
Sets the given OnLocationClusterClickListener handler
Sets a listener for when a location gets selected (programmatically or user-triggered)
Set the map click listener. Should be added here instead of the providers setOnMapClickListener, because MapControl needs this event.
Set the marker click listener. Should be set here instead of using the providers setOnMarkerClickListener
Set the marker info window click listener. Should be added here instead of on the map itself, because MapControl needs this event.
Set the marker info window click listener. Should be added here instead of on the map itself, because MapControl needs this event.
Enables/disables the info window on user-selected locations
Renders the icon set with MPIPositionPresenter.updateDisplayRule at the last known user position on the map