2012-01-04 70 views
0

如何將箭頭(標記)指向用戶的移動?地圖上的移動

在模擬器上,我沿着紅色箭頭(skrinshot)的方向移動,標記橫向移動。

我的代碼,這增加了在地圖上的箭頭:

LinearLayout vGoing = (LinearLayout) View.inflate(getApplicationContext(), R.layout.mylocationidentificationgoing, null); 
mapView.addView(vGoing, new MapView.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT,point,MapView.LayoutParams.BOTTOM_CENTER)); 

回答

0

您可以使用GPS跟蹤緯度長三角洲的變化,並用它來顯示箭頭的方向。