use of org.osmdroid.views.overlay.Polyline in project collect by opendatakit.
the class GeoShapeOsmMapActivity method overlayPointPathListener.
private void overlayPointPathListener() {
overlayEvents = new MapEventsOverlay(receive);
polyline = new Polyline();
polyline.setColor(Color.RED);
Paint paint = polyline.getPaint();
paint.setStrokeWidth(stroke_width);
map.getOverlays().add(polyline);
map.getOverlays().add(overlayEvents);
map.invalidate();
}
use of org.osmdroid.views.overlay.Polyline in project collect by opendatakit.
the class GeoTraceOsmMapActivity method overlayMapLayerListener.
private void overlayMapLayerListener() {
polyline = new Polyline();
polyline.setColor(Color.RED);
Paint paint = polyline.getPaint();
paint.setStrokeWidth(5);
mapView.getOverlays().add(polyline);
mapView.invalidate();
}
Aggregations