     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
+            })
+        }
+    }
 
 }
 

        return annotationView
    }
    
    func mapInitComplete(_ mapView: MAMapView!) {
        
        minePin = MinePinAnnotation()

    var search:AMapSearchAPI!
    var minePin:MinePinAnnotation!
    var minePinView:MAPinAnnotationView!
    var searchNear = true
    var currentAnnotations : [MAPointAnnotation] = []
    
    override func viewDidLoad() {
        super.viewDidLoad()
