地理意图标签未显示在Google Maps App中 [英] Geo Intent Label not showing in Google Maps App

查看:69
本文介绍了地理意图标签未显示在Google Maps App中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我的Google Maps应用程序最近进行了更新,现在为 10.11.1版,因此以下代码未按预期显示标签,

Since my Google Maps app updated recently, now version 10.11.1, the following code does not show the label as expected, documented, and previously working:

  val intent = Intent(Intent.ACTION_VIEW, Uri.parse("geo:38.8951,100.0364?q=38.8951,100.0364(foo)")).setPackage("com.google.android.apps.maps")
  if (intent.resolveActivity(packageManager) == null) {
    intent.setPackage(null)
  }
  startActivity(intent)

此版本(geo:之后紧跟0,0的版本)也没有:

And neither does this version (with 0,0 immediately after geo:):

  val intent = Intent(Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=38.8951,100.0364(foo)")).setPackage("com.google.android.apps.maps")
  if (intent.resolveActivity(packageManager) == null) {
    intent.setPackage(null)
  }
  startActivity(intent)

官方文档中的示例代码也未显示标签:

Neither does the example code in the official documentation show a label:

// Display a label at the location of Google's Sydney office
Uri gmmIntentUri = Uri.parse("geo:0,0?q=-33.8666,151.1957(Google+Sydney)");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);

推荐答案

即使最新的地图更新10.12.1仍然没有解决方案,即使文档仍然说应该删除标签,标签仍然不会显示 我已经在Google的问题跟踪器上创建了一个问题: https://issuetracker.google.com/issues/129726279

No solution still even with latest map update 10.12.1 the label still does not show even if the documentation still says it should I've created an issue on Google's Issue tracker: https://issuetracker.google.com/issues/129726279

希望我们很快会提供一些信息.

hopefully we'll have some information shortly.

这篇关于地理意图标签未显示在Google Maps App中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆