【问题标题】:How do hide latitude and longitude from pin on google map如何在谷歌地图上隐藏经纬度
【发布时间】:2014-06-15 19:46:00
【问题描述】:

我使用以下代码在默认谷歌地图应用程序上显示位置,但地图上的指针显示的是我不想要的纬度和对数值.. 也可以在默认谷歌上放置自定义图钉地图应用程序?

            String uriBegin = "geo:" + Latitude + "," + Longitude;
            String query =Latitude + "," + Longitude ;
            String encodedQuery = Uri.encode(query);
            String uriString = uriBegin + "?q=" + encodedQuery + "&z=16";
            //String uriString = "?q=" + encodedQuery ;
            Uri uri = Uri.parse(uriString);
            Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
            startActivity(intent);

【问题讨论】:

    标签: android maps android-mapview marker


    【解决方案1】:

    如果你检查this link

    你会发现:

    geo:0,0?q=lat,lng(label) 在给定的经度和 带有字符串标签的纬度。例子: "geo:0,0?q=34.99,-106.61(宝物)"

    附:我认为您不能在 Google 地图应用程序中使用自定义标记。

            String uriBegin = "geo:" + Latitude + "," + Longitude;
            String query =Latitude + "," + Longitude ;
            String encodedQuery = Uri.encode(query);
            String uriString = uriBegin + "?q=" + encodedQuery + "(Anylabelyouwant)" + "&z=16";
            //String uriString = "?q=" + encodedQuery ;
            Uri uri = Uri.parse(uriString);
            Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
            startActivity(intent);
    

    【讨论】:

    • 不幸的是这不起作用!它显示了纬度和经度值,而不仅仅是显示标签
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-28
    • 1970-01-01
    相关资源
    最近更新 更多