             if  let container = jsonObject as? [String : [String: Any]],
                 let coordinates = container[ViewController.jsonKey] as? [String : [String : Double]] {
                 
-                var markers = Array<Marker>(repeating: Marker(coordinate: CLLocationCoordinate2D(latitude: 0, longitude: 0)), count: coordinates.count)
+                var markers = Array<Marker>(repeating: Marker(coordinate: CLLocationCoordinate2D(latitude: 0, longitude: 0), position: 0), count: coordinates.count)
                 for (key, value) in coordinates {
-                    markers[Int(key)! - 1] = Marker(coordinate: CLLocationCoordinate2D(latitude: value["latitude"]!, longitude: value["longitude"]!))
+                    let position = Int(key)!
+                    markers[position - 1] = Marker(coordinate: CLLocationCoordinate2D(latitude: value["latitude"]!, longitude: value["longitude"]!), position: position)
                 }
                 return markers
             }

                initialZoomCompleted = true
            }

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

    
    private let initialCoordinate: CLLocationCoordinate2D
    
    init(coordinate: CLLocationCoordinate2D, position: Int) {
        initialCoordinate = coordinate
        title = "Marker \(position)"
        super.init()
    }
}
