相关疑难解决方法(0)

Android - 如何在Android应用中使用特定位置,缩放级别和标记启动Google地图意图

Map Intent不使用特定缩放级别以及自定义标记

    float lat = 40.714728f;
    float lng = -73.998672f;

    String maplLabel = "ABC Label";
    final Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
            Uri.parse("geo:0,0?q="+lat+","+lng+"&z=16 (" + maplLabel + ")"));
    startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

谁知道出了什么问题?或者怎么做?我想在特定缩放级别使用自定义标签标记显示某些(lat,lng)的地图.

android google-maps android-intent

25
推荐指数
1
解决办法
5万
查看次数

标签 统计

android ×1

android-intent ×1

google-maps ×1