         mapView.setVisibleMapRect(zoomRect, edgePadding: UIEdgeInsetsMake(150,150,150,150), animated: true)
         }
 
+    override func viewWillDisappear(animated: Bool) {
+        rotatorTimer?.invalidate()
+        }
+
+
     // Draw the polyline.
     func mapView(mapView: MKMapView, rendererForOverlay overlay: MKOverlay) -> MKOverlayRenderer! {
         if overlay is MKPolyline {

class BekijkWandelingController: UIViewController {

    var locations = [CLLocation]()

    var filenaam: String = "" {
        didSet {

            }
        return nil
        }


    func rotatorNext() {
        if rotatorPhase >= rotatorStrings.count {
            rotatorPhase = 0
            }
        if rotatorPhase < rotatorStrings.count {
            infoLabel.text = rotatorStrings[rotatorPhase]
            }
        else {
            infoLabel.text = ""
            }
        rotatorPhase += 1
        }


    }

