     }
     
     @IBAction func mark(_ sender: UIBarButtonItem) {
-        let marker = Marker(coordinate: UserLocation.instance.currentLocation!.coordinate)
+        let marker = Marker(coordinate: UserLocation.instance.currentLocation!.coordinate, position: markers.count + 1)
         markers.append(marker)
         mapView.addAnnotation(marker)
     }


class Marker : NSObject, MKAnnotation {
    
    var title: String? = "Path Marker"
    var subtitle: String?
    var coordinate: CLLocationCoordinate2D {
        return CLLocationCoordinate2D(latitude: initialCoordinate.latitude + latitudeAdjustment, longitude: initialCoordinate.longitude + longitudeAdjustment)

                initialZoomCompleted = true
            }

            if trackUser { mapView.setCenter(location.coordinate, animated: false) }
            
        case .headingUpdate(let heading):
            if trackUser { mapView.camera.heading = heading.trueHeading }
            
        default:
            break
