1
喜「由...提供」,
我有意向的谷歌地圖應用到特定位置打開。 是否可以刪除(屏幕截圖上的紅色圓圈)提供的左下角的標籤?
我用在Android這個方法打開谷歌地圖的特定位置:
/**
* Open Google Maps to specific coordinates and show the name of the place with the label
* @param context the {@link Context}
* @param latitude the latitude
* @param longitude the longitude
* @param label the name of the place
*/
public static void openGoogleMaps(Context context, double latitude, double longitude, String label) {
String uriBegin = "geo:" + latitude + "," + longitude;
String query = latitude + "," + longitude + "(" + label + ")";
String encodedQuery = Uri.encode(query);
String uriString = uriBegin + "?q=" + encodedQuery + "&z=16";
Uri uri = Uri.parse(uriString);
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
context.startActivity(intent);
}
它的工作原理。謝謝! –