开发者

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 Reference
  • MKOverlayView Reference

This is described in some detail in the developer documentation on Location Awareness, in the section Drawing Overlays on a Map.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜