我使用 Google Maps URL Scheme
在 iOS 上打开 Google Map
应用程序,我有 schema
:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"comgooglemaps://?center=35.6653,139.6959&zoom=16&views=traffic&mapmode=standard"]];
但是当我运行应用程序时,结果没有在位置 (35.6653,139.6959) 显示标记。
如何显示标记?
最佳答案
当你在 url 中传递纬度和经度时,你可以像 as 一样显示标记
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"http://maps.google.com/maps?q=35.6653,139.6959"]];
关于ios - Google Maps URL Scheme 不显示标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27222552/