         return annotationView
     }
     
+    
+    //地图初始化完成，设置用户位置大头针
     func mapInitComplete(_ mapView: MAMapView!) {
         
         minePin = MinePinAnnotation()

            return annotation
        }
        
        mapView.addAnnotations(annotations)
        mapView.showAnnotations(annotations, animated: true)
        
    }
    
    //自定义大头针

    fileprivate func searchNearBike() {
        searchCustomLocation(mapView.userLocation.coordinate)
    }
    
    
    //大头针动画
    fileprivate func pinAnimation() {
        
        let frame = minePinView.frame
        UIView.animate(withDuration: 0.6, animations: {
            self.minePinView.frame = frame.offsetBy(dx: 0, dy: -20)

        }) { (completed) in
            UIView.animate(withDuration: 0.6, animations: {
                self.minePinView.frame = frame
            })
        }
    }

}

