views:

70

answers:

1

How to add overlay on a map in objective c? (has any body tried it in iphone os 4.0)?

+1  A: 

here is a good article on using the MKPolyline overlay to add a route type annotation to your map. It should give you an idea how to add any of the other overlays. just implement the

- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id )overlay

on your map delegate and give it the type of overlay your are drawing.

AtomRiot
Thanks man...you really made my work easy...
ritu
im just glad they added it. I had a custom annotation that i used to do the same thing in 3.x and it was slow. having these overlays make things loads easier.
AtomRiot