 //
 
 import Cocoa
+import CoreLocation
+import Mapbox
+import RxOptional
+import RxSwift
 import UberGoCore
-import Mapbox
-import RxSwift
-import CoreLocation
-import RxOptional
 
 class MapViewController: BaseViewController {
 

                    return
                }
                print("setCenter")
                self.mapView.setCenter(location.coordinate, animated: true)
            })
        .addDisposableTo(self.disposeBag)

        self.mapView.translatesAutoresizingMaskIntoConstraints = true
        self.view.addSubview(self.mapView)
    }

    fileprivate func updateCurrentLocation(point: CLLocationCoordinate2D) {
        if self.currentLocationPoint == nil {
            let location = MGLPointAnnotation()
            location.coordinate = point
            location.title = "Here"

            // Add
            self.currentLocationPoint = location
            self.mapView.addAnnotation(location)
        } else {
            self.currentLocationPoint?.coordinate = point
        }
    }
}

extension MapViewController: MGLMapViewDelegate {

    func mapView(_ mapView: MGLMapView, annotationCanShowCallout annotation: MGLAnnotation) -> Bool {
        return true
    }
}
