use of com.github.ignition.samples.location.overlays.AccuracyCircleOverlay in project ignition by mttkay.
the class IgnitedLocationSampleActivity method update.
private void update(Location location) {
mapOverlays.clear();
int lat = (int) (location.getLatitude() * 1E6);
int lon = (int) (location.getLongitude() * 1E6);
final float accuracy = location.getAccuracy();
GeoPoint point = new GeoPoint(lat, lon);
mapController.setCenter(point);
mapOverlays.add(new AccuracyCircleOverlay(point, accuracy));
}
Aggregations