title: Why doesn't my 'didTap marker' function work?
body: <p>I have been building a Google Maps iOS app and somehow my 'didTap marker' function does not work. If I tap on a marker on the map, the whole view simply just gets dragged off to left, but no code gets run. Otherwise, the print functions below would work. Where might cause this problem?</p>
  
  <pre><code>func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker){
      var lat: CLLocationDegrees = marker.position.latitude
      var lng: CLLocationDegrees = marker.position.longitude
      var formattedCoordinate = CLLocationCoordinate2D(latitude: lat,longitude: lng)
      print("markersArray is \(markersArray)")
      print("formattedCoordinate is \(formattedCoordinate)")
      markersArray = markersArray.filter({ !(($0.latitude == formattedCoordinate.latitude) &amp;&amp; ($0.longitude == formattedCoordinate.longitude)) })
  }
  </code></pre>