Know when the user changed floors

App has a floor chooser for the user to click on to change floors. When the user is using directions and clicks on the stairs the floor changes. How do I catch this so the app can update the current floor shown in floor chooser? Using the v6 alpha SDK. Thanks in Advance

Hey schlooop!

To catch this listen for the floor-change event, which is fired anytime a new floor is shown in the MapView. Here’s an example:

// Listen for changes to the floor.
mapView.on('floor-change', event => {
    console.log('Floor changed to: ', event.floor.name);
});

Must have missed that in TEvents. My app works now.