【发布时间】:2013-07-20 23:06:09
【问题描述】:
不确定这里发生了什么,但我希望它在设备移动时每秒再绕一圈。它所做的只是做1个圆圈。我希望圆圈突出显示我所走的路线。建议?谢谢
LocationManager locationmanager = (LocationManager) getSystemService(LOCATION_SERVICE);
Criteria cr = new Criteria();
String provider = locationmanager.getBestProvider(cr, true);
Location location = locationmanager.getLastKnownLocation(provider);
locationmanager.requestLocationUpdates(provider, 1000, 0, (LocationListener) this);
CircleOptions circleOptions = new CircleOptions()
.center(new LatLng(location.getLatitude(), location.getLongitude()));
circleOptions.radius(3.048); // In meters
mMap.addCircle(circleOptions);
【问题讨论】:
-
不知道如何将修改后的代码放回问题中。
标签: google-maps google-maps-api-2 android-maps-v2