[英]Android Maps Intent - Extra Parameters
現在,我正在通過以下調用啟動 Google 地圖應用程序:
String geoAddress = "maps.google.com/maps?q=";
geoAddress += LatLong[0] + "," + LatLong[1];
Intent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geoAddress));
startActivity(i);
這將打開並在 map 上的指定 position 處放置一個標記。 我有兩個問題:
1)如何放置多個我有經度/緯度的標記?
2)如何將地圖應用程序啟動到其他模式(地形/衛星/等)?
謝謝!
閱讀以下鏈接並下載鏈接代碼(供進一步參考)
https://github.com/jgilfelt/android-mapviewballoons
https://github.com/jgilfelt/android-mapviewballoons#readme
2.要改變視圖使用以下函數,mapView.setSatellite(true); mapView.setStreetView(true); 如需進一步參考http://mobiforge.com/developing/story/using-google-maps-android
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.