Subscribe to floor changes in the rendering

Posted on September 30, 2019

Assigning a MPDirectionsRenderer delegate will make it possible to know which floor the currently rendered part of the route belongs to:

func floorDidChange(_ floor: NSNumber!) {
    mapControl?.currentFloor = floor
}