【问题标题】:Movement on the map地图上的移动
【发布时间】:2012-01-04 17:20:22
【问题描述】:

如何将箭头(标记)指向用户的移动?

在模拟器上,我朝红色箭头 (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));

【问题讨论】:

    标签: android maps android-mapview


    【解决方案1】:

    您可以使用 GPS 来跟踪 Lat Long 的增量变化,并使用它来显示箭头的方向。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多