     //用户位置更新后，会调用此函数
     func didUpdateBMKUserLocation(userLocation: BMKUserLocation!) {
         _mapView!.updateLocationData(userLocation)
-        let viewRegion = BMKCoordinateRegionMake(userLocation.location.coordinate, BMKCoordinateSpan(latitudeDelta: 0.2,longitudeDelta: 0.2))
-        let adjustedRegion = _mapView?.regionThatFits(viewRegion)
-        
-        _mapView?.setRegion(adjustedRegion!, animated: true)
         print("目前位置：\(userLocation.location.coordinate.longitude), \(userLocation.location.coordinate.latitude)")
     }
     

        return nil
    }
    

    
    func onGetOfflineMapState(type: Int32, withState state: Int32) {
        if type == 0 {
            // ID 为 state 的城市正在下载或更新，开始后会回调此类型
            var updateInfo = offlineMap.getUpdateInfo(state)
            if let info = offlineMap.getUpdateInfo(state) {
                updateInfo = info
                if let info = offlineMap.getAllUpdateInfo() {
                    localDownloadMapInfo = info as! [BMKOLUpdateElement]
                }else {
                    localDownloadMapInfo = Array(count: 0, repeatedValue: BMKOLUpdateElement())
                }
                dispatch_async(dispatch_get_main_queue(), {
                    
                })
                NSLog("城市名：\(updateInfo.cityName)，下载比例：\(updateInfo.ratio)")
            }else {
                return
            }
        }
    }
    
    //设置地图显示范围(其他地方不会显示)
    func mapDisplayRange(center:CLLocationCoordinate2D, latitudeDelta:Double, longitudeDelta:Double) {
        let span = BMKCoordinateSpanMake(latitudeDelta, longitudeDelta)

        super.viewWillDisappear(animated)
        _mapView?.viewWillDisappear()
        _mapView?.delegate = nil //不用时，置nil
        locationService.delegate = nil
    }
    
