【问题标题】:Add marker to Google Maps standard app将标记添加到 Google 地图标准应用程序
【发布时间】:2014-09-08 03:12:20
【问题描述】:

在我的应用中,我正在使用隐式意图调用 Google 地图应用(或其他应用):

    Uri location = Uri.parse(getResources().getString(R.string.latlng_map));
    Intent mapIntent = new Intent(Intent.ACTION_VIEW, location);        
    try {
        startActivity(Intent.createChooser(mapIntent, "View on map ...")); ...

有没有办法在定位点上添加标记?某种传递附加值,如 putExtra()? 我在想,当有一个应用程序在做同样的事情时,为什么要制作新的查看地图活动(而且我会做的更好)。

【问题讨论】:

标签: android google-maps google-maps-markers


【解决方案1】:

您不能将自定义叠加层/标记添加到 Google 地图应用程序。如果您需要在地图上显示自定义内容,最好在您的应用程序中自己处理地图(然后您可以添加任何您想要的内容)。

【讨论】:

  • 是的,看来我必须处理 API。谢谢
猜你喜欢
  • 1970-01-01
  • 2018-02-25
  • 2018-10-21
  • 2013-03-25
  • 1970-01-01
  • 1970-01-01
  • 2011-04-14
  • 2020-07-30
  • 1970-01-01
相关资源
最近更新 更多