开发者

mapkit layer modification on iphone 4

开发者 https://www.devze.com 2023-01-30 02:28 出处:网络
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 MKMap

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

精彩评论

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

关注公众号