mapkit layer modification on iphone 4
is there any way to load own map on mapkit using some layer modification and instead of Google I show my own map with compass ef开发者_如何学Pythonfect on rotation?
You can add custom layers to a MKMapView
easily with MKOverlay
and related classes. You could use a polygon, an image, or dynamically draw on demand.
You define a region using the MKOverlay
protocol, and use a MKOverlayView
to perform the actual rendering.
MKOverlay
ReferenceMKOverlayView
Reference
This is described in some detail in the developer documentation on Location Awareness, in the section Drawing Overlays on a Map.
精彩评论