Custom Map using iPhone MapKit

纵然是瞬间 提交于 2019-11-29 15:19:48

问题


I am attempting to use MapKit to create a custom map (similar to this concept http://mapwow.com/) using an image instead of the google maps image. This is so we can include the gps functionality and the pins functionality. I have looked in the documentation and there does not appear to be a standard way of doing it. Is there a way to do this using MapKit or has someone found a way to achieve something similar?


回答1:


You can't currently use anything other than the Google Maps with MapKit.

Dmytro has already pointed to useful links that provide alternatives, particularly the route-me library, but there's also the CloudMade API which provides another alternative.

If you want to roll your own, you may find the CATiledLayer class helpful.




回答2:


You can take a look at route-me project. It allows developer to use custom map sources such as OpenStreetMap, CloudMade etc and supports pins. BTW CloudMade has a map style editor which might be useful for you



来源:https://stackoverflow.com/questions/2709786/custom-map-using-iphone-mapkit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!