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
2010-07-05 18:23:38
Thanks man...you really made my work easy...
ritu
2010-07-06 08:37:57
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
2010-07-06 13:55:37