title: Detecting Tap on MKPolygonView in MKMapView on iOS7
body: <p>Based on what I found on this SO question (<a href="https://stackoverflow.com/questions/6436479/touch-events-on-mkmapviews-overlays">Touch events on MKMapView&#39;s overlays</a>), I have implemented a way to intercept tap gesture on MKPolygon. </p>
  
  <p>It was working fine in our app that was built using Xcode 4.6.3 against iOS 6. However things stopped working when I tried it on iOS 7 devices. </p>
  
  <p>Specifically </p>
  
  <pre><code>    CLLocationCoordinate2D coord = [neighborhoodMap_ convertPoint:point
                                               toCoordinateFromView:neighborhoodMap_];
  
      // We get view from MKMapView's viewForOverlay.
      MKPolygonView *polygonView = (MKPolygonView*) view;
      CGPoint polygonViewPoint = [polygonView pointForMapPoint:mapPoint];
      BOOL mapCoordinateIsInPolygon = CGPathContainsPoint(polygonView.path,
                                                          NULL,
                                                          polygonViewPoint,
                                                          NO);
  </code></pre>
  
  <p>For some reason the call to CGPathContainsPoint no longer returns YES even the given coordinates is within the MKPolygonView. Not sure if anyone has hit this problem, but I would appreciate any insights you may have.</p>
  
  <p>Thanks!</p>