FloorFilterState

sealed interface FloorFilterState

Represents the state for the FloorFilter.

Workflow example:

val floorFilterState: FloorFilterState = FloorFilterState(this.map.value, viewModelScope, uiProperties) { floorFilterSelection ->
when (floorFilterSelection.type) {
is FloorFilterSelection.Type.FloorSite -> {
val floorFilterSelectionType =
floorFilterSelection.type as FloorFilterSelection.Type.FloorSite
floorFilterSelectionType.site.geometry?.let {
this.setViewpoint(Viewpoint(getEnvelopeWithBuffer(it)))
}
}
is FloorFilterSelection.Type.FloorFacility -> {
....

}
}

Since

200.2.0

Properties

Link copied to clipboard
abstract val facilities: List<FloorFacility>
Link copied to clipboard
abstract val floorManager: StateFlow<FloorManager?>
Link copied to clipboard
abstract val onFacilityChanged: StateFlow<FloorFacility?>
Link copied to clipboard
abstract val onLevelChanged: StateFlow<FloorLevel?>
Link copied to clipboard
abstract var selectedFacilityId: String?
Link copied to clipboard
abstract var selectedLevelId: String?
Link copied to clipboard
abstract var selectedSiteId: String?
Link copied to clipboard
abstract val sites: List<FloorSite>
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun getSelectedFacility(): FloorFacility?
Link copied to clipboard
abstract fun getSelectedSite(): FloorSite?