switchFloor

open fun switchFloor(targetBuildingId: Int, targetFloorId: Int): Boolean

Call this function to perform a floor switch.

Parameters

targetFloorId

The floor id for the floor to display on the map.


open fun switchFloor(targetBuildingId: Int, targetFloorId: Int, @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). Used by selectEntity so a cross-floor POI pin/selection is plotted only after the target floor's layers exist.