[英]drawing trail to location on gps
I am failry new at using the gps function. 我在使用gps函数时遇到了新问题。 What my code does is it allows the user to select a point on the map, and it drops a marker.
我的代码所做的是,它允许用户在地图上选择一个点,并放下一个标记。 I also want it to draw a trail to the selected point to guide the user to the location.
我还希望它在选定的点上绘制一条路径,以引导用户到达该位置。
I am not really sure how to go about doing so, if sombody can maybe help me find a tutorial, of some sort that would be greatly appreciated. 我真的不确定如何去做,如果某人可以帮助我找到某种教程,这种教程将不胜感激。
OverlayItem overlayItem = new OverlayItem(
touchedpoint, "AYO", "Whats good yo");
CustomPinpoint custom = new CustomPinpoint(d,
CampusMap.this);
custom.insertPinpoint(overlayItem);
overlayList.add(custom);
您可以使用MyLocationOverlay
,它向您显示指南针和位置;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.