     var pickerView = UIPickerView()
     var toolBar = UIToolbar()
     var pickOption = ["UBike Station", "Toilet"]
+    
+    var annotationView: MKAnnotationView?
+    var iconImageView: UIImageView?
     
     override func viewDidLoad() {
         super.viewDidLoad()

        print("Errors: \(error.localizedDescription)")
    }
    
    func mapView(mapView: MKMapView, viewForAnnotation annotation: MKAnnotation) -> MKAnnotationView? {
        
        if !(annotation is CustomPointAnnotation) {
            return nil
        }
        
        let annotationId = "Station"
        var annotationView = mapView.dequeueReusableAnnotationViewWithIdentifier(annotationId)
        //如果地標已經建立,直接顯示該地標,否則就建立一個可自訂圖示的新地標
        if annotationView == nil {
            annotationView = MKAnnotationView(annotation: annotation, reuseIdentifier: annotationId)
            annotationView?.canShowCallout = true
            
        }
        else {
            annotationView?.annotation = annotation
        }
       
        let cpa = annotation as! CustomPointAnnotation
        
        // Resize image
        let pinImage = UIImage(named: cpa.imageName)
        let size = CGSize(width: 30, height: 30)
        UIGraphicsBeginImageContext(size)
        pinImage!.drawInRect(CGRectMake(0, 0, size.width, size.height))
        let resizedImage = UIGraphicsGetImageFromCurrentImageContext()        
        
//        annotationView!.image = UIImage(named: cpa.imageName)
        annotationView!.image = resizedImage
        annotationView?.backgroundColor = UIColor.whiteColor()
        annotationView!.layer.cornerRadius = annotationView!.frame.size.width / 2

        
     
        
        
        
        return annotationView
    }
    
    
    func showStationAnnotation() {

    }
    
    func removeAnnotation() {
        iconImageView?.removeFromSuperview()
        let annotations = mapView.annotations
        mapView.removeAnnotations(annotations)
        print("removeAnnotation")
