Highlight and Select
This documentation refers to the introduced concept of select and highlight that was released with SDK 4.3.0
How to change the appearance of different states
// Changing the visibility of a polygon for selection
MapsIndoors.getDisplayRule(MPSolutionDisplayRule.SELECTION)?.let {
it.isPolygonVisible = true
}
// Changing the visibility of a label for highlights
MapsIndoors.getDisplayRule(MPSolutionDisplayRule.HIGHLIGHT)?.let {
it.isLabelVisible = false
}Highlight
Highlight all Restrooms
// Create a filter to only receive locations with the category Toilet
val filter = MPFilter.Builder().setCategories(Collections.singletonList("Toilet")).build()
// Query locations with the created filter
MapsIndoors.getLocationsAsync(null, filter) { locations, error ->
if (locations != null) {
// Highliting all current toilets, with default MPHighlightBehavior.
// The MPHighlightBehavior can be used to customize the camera and map behavior,
// like fitting the view to show all highlighted locations.
mMapControl?.setHighlight(locations, MPHighlightBehavior.DEFAULT)
}
}
Clear the highlight
Styling the Highlight Badge
Example: Change the color of the Highlight Badge
Example: Hide the Highlight Badge
Selection

Clear current selection
Styling the Selection Marker

Deprecated Selection Highlight
Last updated
Was this helpful?