【问题标题】:android add marker to google mapsandroid将标记添加到谷歌地图
【发布时间】:2021-05-15 12:32:36
【问题描述】:

这不是重复的..我已经尝试了所有可能的代码来在我的地图上添加标记,该标记正在加载但它不起作用..请提出任何其他方式..下面是我的代码。我们需要添加任何依赖项吗?可能是我错过了什么。能否请您提供标记的完整代码?

 Intent intent = new Intent(Intent.ACTION_VIEW);
            intent.setData(Uri.parse("geo:13.01083,77.579510"));
            Intent chooser = Intent.createChooser(intent,"Launch Map");
            startActivity(chooser);

【问题讨论】:

    标签: android android-intent maps marker


    【解决方案1】:

    我找到了这个答案并且它工作正常

      intent.setData(Uri.parse("geo:" + eslat  + "," + eslon + "?q=" + eslat  + "," + eslon + ")"));
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-11
      • 1970-01-01
      • 2014-12-08
      • 2015-09-12
      • 1970-01-01
      • 2013-04-29
      • 2011-04-03
      • 2014-02-09
      相关资源
      最近更新 更多