final Polyline line = new PolylinemapView; linegetOutlinePaintsetColorColorBLUE; linegetOutlinePaintsetStrokeWidthColorGREEN; if pointLists != null && pointListssize0
final Polyline line = new Polyline(mapView); line.getOutlinePaint().setColor(Color.BLUE); line.getOutlinePaint().setStrokeWidth(10); // Set the width of the line to 10 pixels line.setPoints(getGeoPoints()); // Set the points of the line line.getOutlinePaint().setStrokeCap(Paint.Cap.ROUND);
mapView.getOverlayManager().add(line); mapView.invalidate();
原文地址: http://www.cveoy.top/t/topic/hIfA 著作权归作者所有。请勿转载和采集!