简体   繁体   English

如何强制MapKit在iOS 5.1之前使用Google移动地图(GMM)

[英]How to force MapKit to use Google Mobile Maps (GMM) beyond iOS 5.1

The Map Kit Framework Reference says: Map Kit Framework Reference说:

In iOS5.1 and earlier,the Map Kit framework uses the Google Mobile Maps (GMM) service to provide map data. 在iOS5.1和更早版本中,Map Kit框架使用Google移动地图(GMM)服务来提供地图数据。

If I use the MapKit framework for displaying maps, it is using google maps for iOS 5.1 and earlier, for iOS 6 it uses apples new maps. 如果我使用MapKit框架显示地图,则它使用的是iOS 5.1和更早版本的Google地图,而对于iOS 6,则使用的是苹果新地图。 Can I force MapKit to still use goggle mobile maps instead? 我可以强制MapKit仍然使用护目镜移动地图吗?

Related Links: What's new in iOS6 , Location Awarness Programming Guide 相关链接: iOS6的新功能位置警告编程指南

No, not possible. 不,不可能。

With iOS 6 and above, you cannot access Google Maps natively. 使用iOS 6及更高版本,您将无法原生访问Google Maps。 If you wish to use MapKit on iOS 6, you're stuck with Apple Maps. 如果您想在iOS 6上使用MapKit,则必须使用Apple Maps。 End of. 结束。 This shouldn't be too much of a problem; 这不应该是太大的问题。 MapKit should work seamlessly with either Google Maps on iOS 5 and Apple Maps on iOS 6, and you use the same API and code in either version. MapKit应该可以与iOS 5上的Google Maps和iOS 6上的Apple Maps无缝兼容,并且您可以在两个版本中使用相同的API和代码。

You can still access Google Maps via URL (http://maps.google.com/...), and send the user to it via Safari, or maybe using a UIWebView , but the functionality you have will be fairly restricted (only what's possible to pass in the URL as parameters). 您仍然可以通过URL(http://maps.google.com / ...)访问Google Maps,并通过Safari或使用UIWebView将用户发送给Google Maps,但是您所拥有的功能将受到很大限制(仅可以将URL作为参数进行传递)。 You'll have a lot of work cut out for yourself if you want to support Google Maps in iOS 6. 如果要在iOS 6中支持Google Maps,您将需要完成很多工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM