Let users choose between Google Maps and Apple Maps in IOS 6?

南楼画角 提交于 2019-12-01 20:08:37

问题


I am using basic MapKit functionality in my iOS app.

Is there a way to let my iOS 6 users choose between Google and Apple maps for the mapping data presented within my app? If so, how can I do this programmatically?


回答1:


No.

You can let users choose between iOS maps and other maps (OpenStreetMap, Microsoft VirtualEarth, CloudMade, OpenAerialMap, OpenCycleMap, SpatialCloud, TileStream7) with route me (on github) or you can go with Bing maps (also a library available).

But you'll have to code for the different libraries as the MapKit Framework is only available for Apple maps in iOS 6.




回答2:


ClassicMap (GitHub) does exactly what you're looking for. The sample project shows how to add a Google Maps overlay to MapKit and how to switch between Google and Apple maps.

It works well, but zoom levels seem to be limited to Apple's data (I'm pretty sure that the maximum zoom was higher in Google Maps, at least where I live).



来源:https://stackoverflow.com/questions/12524012/let-users-choose-between-google-maps-and-apple-maps-in-ios-6

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