         }
         mapView.delegate = self
         
+        // mapの表示範囲
         fitMapWithSpots(fromLocation, toLocation: toLocation)
+        
+        // 渡されたspotsについてピンを立てる
+        spots.forEach { spot in
+            addSpotPin(spot)
+        }
+        
+        let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: "tappedMap")
+        mapView.addGestureRecognizer(tapGestureRecognizer)
+        
+        
         
         
         dismissButton.frame = CGRectMake(30,50, 50,50)

        dismissButton.backgroundColor = Constants.COLOR_WHITE
        dismissButton.addTarget(self, action: "dismiss", forControlEvents: .TouchUpInside)
        self.view.addSubview(dismissButton)
        
        // 渡されたspotsについてピンを立てる
        spots.forEach { spot in
            addSpotPin(spot)
        }
        
        if spotDetailView == nil {
            spotDetailView = SpotDetailView.create(self)

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func tappedMap() {
        self.spotDetailView.hidden = true
    }
    
    func dismiss() {
