【发布时间】:2017-04-07 11:02:18
【问题描述】:
我有这段代码可以打开具有特定位置的谷歌地图应用程序,它正在工作,但我需要在该位置放置一个图钉,这可能吗?
if (UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!)) {
UIApplication.shared.openURL(URL(string:
"comgooglemaps://?center=\(self.location.coordinate.latitude),\(self.location.coordinate.longitude)&zoom=14&views=traffic")!)
} else {
print("Can't use comgooglemaps://");
}
如何做到这一点?
【问题讨论】:
标签: ios swift google-maps google-maps-sdk-ios