BuildingLayers

open class BuildingLayers

Class that contains a list of floor layers which contains a list of map layers. Each layer contains a list of elements that's added to the map.

Properties

Link copied to clipboard
Minimum interval between switchFloor calls to suppress redundant rapid-fire triggers.
Link copied to clipboard

Functions

Link copied to clipboard
Clear all overlay layers in the building
Link copied to clipboard
open fun clearPinLayers()
Clear all pin layers in the building
Link copied to clipboard
Clear all routing layers in the building
Link copied to clipboard
open fun deleteFromMap()
Call this function to remove all floor layers in the building layer.
Link copied to clipboard
open fun getBuildingId(): Int
Method to return building Id
Link copied to clipboard
Call this function to get a building layer's current floor layer.
Link copied to clipboard
Call this function to get current floor id.
Link copied to clipboard
open fun getFloorLayer(floorId: Int): FloorLayer
Call this function to get certain floor layer corresponding to a floor id.
Link copied to clipboard
Get all floor layers in the building layer
Link copied to clipboard
open fun isNull(): Boolean
Call this function to check if the Building Layer exists or not.
Link copied to clipboard
open fun isValid(): Boolean
Returns whether this BuildingLayers was successfully initialized with valid BuildingInfo and floor data.
Link copied to clipboard
open fun isVisible(): Boolean
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
open fun setOpacity(opacity: Float)
Sets the opacity for all floor layers asynchronously.
Link copied to clipboard
open fun setVisibility(isVisible: Boolean): Boolean
Sets the visibility of all floor layers.
Link copied to clipboard
open fun setVisible(targetFloorId: Int): Boolean
Shows only the floor layer with the given ID and hides others.
Link copied to clipboard
open fun switchFloor(targetFloorId: Int, @NonNull listeners: List<MapSelectionChangeListener>): Boolean
Set current floorId and set layer visible.
open fun switchFloor(targetFloorId: Int, @NonNull listeners: List<MapSelectionChangeListener>, @Nullable onSwitched: Consumer<Boolean>): Boolean
Same as switchFloor but notifies onSwitched once the target floor is actually visible (its native layers materialized for a deferred floor).
Link copied to clipboard
open fun updateBuildingMapOverlay(mPropertyId: Int, mBuildingId: Int, targetFloorId: Int, onComplete: Consumer<Boolean>)
Link copied to clipboard
open fun updateMapOverlay(mPropertyId: Int, mBuildingId: Int, targetFloorId: Int, onComplete: Consumer<Boolean>)