title: Google Maps Swift , Custom Marker and InfoWindow with arrow
body: <p>I have created Custom Marker with InfoWindow by Creating XIB file.
  But I want to have down arrow on that marker too so that user get to know that for which marker they have clicked.</p>
  
  <p>and i want to move the infoWindow little it UP from the marker ..I have written down the code for that bu it is not moving up.</p>
  
  <p>My code Below</p>
  
  <p>———————-----------</p>
  
  <pre><code>    googleMapView.delegate = self
      var visibleRegion : GMSVisibleRegion =  googleMapView.projection.visibleRegion()
      var bounds = GMSCoordinateBounds(coordinate: visibleRegion.nearLeft, coordinate: visibleRegion.farRight)
  
  
      for Prop: Property in properties
      {
  
          var latStr = Prop.lat as NSString
          var latDbl : Double  = Double(latStr.floatValue)
          var langStr = Prop.lang as NSString
          var langDbl : Double = Double(langStr.floatValue)
  
          var marker = GMSMarker()
  
  
          let initialLocation = CLLocationCoordinate2DMake(latDbl, langDbl)
          let initialDirection = CLLocationDirection()
  
          let camera = GMSCameraPosition.cameraWithTarget(initialLocation, zoom: 11)
  
          googleMapView.camera = camera
          marker.position = CLLocationCoordinate2DMake(latDbl,langDbl)
          //println("latitude: \(latDbl)")
          //println("longitude: \(langDbl)")
  
          marker.appearAnimation = kGMSMarkerAnimationPop
          marker.icon = UIImage(named: "Map_Marker_Green")
          marker.title = Prop.buildingName as String
          marker.snippet = Prop.proCode as String
          marker.infoWindowAnchor = CGPointMake(0.44, 0.45);
          marker.map = googleMapView
          println("Snippet \(marker.snippet)")
  
      }
  </code></pre>
  
  <p>Code for the Marker and InfoWindow Tip
  ———————————————————————————————————</p>
  
  <pre><code>    func mapView(mapView: GMSMapView!, markerInfoWindow marker: GMSMarker!) -&gt; UIView! {
  
          var infoWindow :CustomInfoWindow = NSBundle.mainBundle().loadNibNamed("PropertyInfoWindow", owner: self.view, options: nil).first! as! CustomInfoWindow
  
          infoWindow.proCode = marker.snippet
          infoWindow.title.text = marker.title
          infoWindow.title.layer.cornerRadius = 10
          infoWindow.layer.cornerRadius = 10
          infoWindow.frame = CGRectMake(infoWindow.frame.minX,infoWindow.frame.minY-100,infoWindow.frame.width,infoWindow.frame.height)
          return infoWindow
      }
  
  
  
      func mapView(mapView: GMSMapView!, didTapInfoWindowOfMarker marker: GMSMarker!) {
          var prop: Property = returnPropObj(marker.snippet)
          println(prop.buildingName)
          dispatch_async(dispatch_get_main_queue())
          {
              let unitListingController = self.storyboard?.instantiateViewControllerWithIdentifier("UnitListing") as! UnitListingController
              unitListingController.property = prop
              self.showViewController(unitListingController as UIViewController, sender: unitListingController )
          }
  
      }
  </code></pre>
  
  <p>Can any one look into this code and give me suggestion if any?
  Appreciate help!</p>