Swift使用高德地圖SDK

NO IMAGE
//建立地圖
let mapview = MAMapView(frame: self.view.bounds)
mapview.delegate = self
self.view.addSubview(mapview)
self.navigationController?.navigationItem.title = "附近旅伴"
//顯示使用者位置
mapview.isShowsUserLocation = true
mapview.userTrackingMode = .follow
//配置顯示當前位置的小藍點
mapview.userLocation.title = "Bohemian"
mapview.userLocation.subtitle = "Rey"
//後臺更新座標
mapview.pausesLocationUpdatesAutomatically = false
mapview.allowsBackgroundLocationUpdates = true
AMapServices.shared().enableHTTPS = true
//大頭針測試
var mapa = MAPointAnnotation()
mapa.coordinate = CLLocationCoordinate2DMake(36.66694, 117.14017)
mapa.title = "山東大學軟體學院"
mapa.subtitle = "Here we are"
mapview.addAnnotation(mapa)

我基本上使用到的就是地圖、標註、標註的view等資訊內容。