//
// MapViewController.swift
// iOS8自适应Cell
//
// Created by eduo_xiaoP on 14/12/22.
// Copyright (c) 2014年 eduo. All rights reserved.
//
import Foundation
import UIKit
class MapViewController : UIViewController , BMKLocationServiceDelegate , BMKMapViewDelegate , PaoPaoViewDelegate{
@IBOutlet var mapView: BMKMapView!
lazy var locationService: BMKLocationService = {
let service = BMKLocationService()
return service
}()
override func viewDidLoad() {
super.viewDidLoad()
mapView.showsUserLocation = true
mapView.delegate = self
mapView.mapType = UInt(BMKMapTypeStandard)
}
//MARK: 百度地图添加自定义弹出视图
func mapViewDidFinishLoading(mapView: BMKMapView!) {
let annotation = BMKPointAnnotation()
let coordinate = CLLocationCoordinate2DMake(39.915, 116.404)
annotation.coordinate = coordinate
mapView.addAnno
Swift 百度地图自定义弹出视图
最新推荐文章于 2020-11-11 18:49:11 发布