         super.viewWillAppear(animated)
         _mapView?.viewWillAppear()
         _mapView?.delegate = self //此处记得不用的时候需要置nil，否则影响内存的释放
-        offlineMap.delegate = self
         locationService.delegate = self
     }
     

    //用户位置更新后，会调用此函数
    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 mapDisplayRange(center:CLLocationCoordinate2D, latitudeDelta:Double, longitudeDelta:Double) {
        let span = BMKCoordinateSpanMake(latitudeDelta, longitudeDelta)
