地理意图标签未显示在Google Maps App中

use*_*550 20 java android google-maps google-maps-markers kotlin

由于我的Google Maps应用程序最近更新了,现在的版本是10.11.1,因此以下代码未按预期显示,已记录且以前仍在工作:

  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)
Run Code Online (Sandbox Code Playgroud)

此版本也没有(0,0紧随其后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)
Run Code Online (Sandbox Code Playgroud)

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

// 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);
Run Code Online (Sandbox Code Playgroud)

Moto G5上没有“ Google Sydney”标签

小智 14

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

希望我们很快能提供一些信息。

  • 每个访问此问题的人,请在错误报告中添加评论,并对其加注星标。 (2认同)