 import MapKit
 
 public class AirSpaceMapDelegate: NSObject, MKMapViewDelegate {
-    var airspaceTable = [MKPolygon: AirSpace]()
+    private var _airspaceTable = [MKPolygon: AirSpace]()
+    
+    public var airspaceTable: [MKPolygon: AirSpace] {
+        return _airspaceTable
+    }
     
     public var polygons = [MKPolygon]()
     

    }
}

extension AirSpaceClass {
    var color: UIColor {
        switch self {
        case .Danger:
            return .black

        polygons = airspaces.map {
            let coords = $0.polygonCoordinates
            let polygon = MKPolygon(coordinates: coords, count: coords.count)
            self._airspaceTable[polygon] = $0
            return polygon
        }
    }
