2010-08-10 68 views

回答

-1

你必須告訴它哪裏要查看:

map.getStreetView().setPosition(latLng:LatLng); 
map.getStreetView().setVisible(flag:boolean) 
+1

對不起,你的答案是不是機器人。 我想也許我的位置不是服務。 – user415999 2010-08-10 10:50:05

9

另外這裏是在使用一個例子的網站(向下滾動到第7步): http://mobile.tutsplus.com/tutorials/android/android-sdk-quick-tip-launching-maps-in-app/

你有使用你的長點和緯度點來構建字符串,然後啓動一個新的ACTION_VIEW意圖。

例如:

Intent streetView = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("google.streetview:cbll="+ latitude+","+longitude+"&cbp=1,99.56,,1,-5.27&mz=21")); 
startActivity(streetView);