Search code examples
iphoneios4mkmapviewmkannotationmkoverlay

What is the difference between MKOverlay and MKAnnotation?



I am new to MKMapView. I implemented a mapView which is looking good. But i was planning to add points or custom image as point in MapView. I can implement it with the help of MKAnnotation, but when i read MKOverlay it was mentioned that Overlays are also annotations. So whats the difference between these two??

Thanks in advance,
aby


Solution

  • In a nutshell, MKAnnotation is based on a point (x,y). MKOverlay is based on an area, bounded by a rectangle.