2011-07-21 60 views
0

現在,我啓動與以下調用谷歌地圖應用程序:Android地圖意圖 - 額外的參數

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); 

將打開並放置一個標記在地圖上的指定位置。我有兩個問題:

1)我如何可以將多個標記,而我有/緯度?

2)如何啓動地圖應用程序到其他模式(terrain/satellite/etc)?

謝謝!

回答

5
  1. 您可以使用疊加在地圖上添加多個鏈接,並且您可以在http://developer.android.com/resources/tutorials/views/hello-mapview.html中看到GoogleMapview示例。 在這裏你可以理解使用覆蓋。

閱讀以下鏈接並下載代碼的鏈接(進一步參考)

https://github.com/jgilfelt/android-mapviewballoons

https://github.com/jgilfelt/android-mapviewballoons#readme

2.To改變視圖使用以下功能, mapView.setSatellite(真正); mapView.setStreetView(true); 進一步參考 http://mobiforge.com/developing/story/using-google-maps-android

+0

http://developer.android.com/resources/tutorials/views/hello-mapview.html。這是鏈接丟棄鏈接 – Abhi

+0

謝謝我要探索一下。 – RedLeader

+0

是的,閱讀並嘗試,你會得到它 – Abhi