0

我想在两点之间画曲线,有人可以帮我吗?我使用了折线测地线,但曲线不是很明显,我可以使用测地线增加曲线大小吗?

4

1 回答 1

-1

检查这个:

           ArrayList<LatLng> poi = new ArrayList<LatLng>();
           PolylineOptions polyLineOptions = new PolylineOptions();
           poi.add(new LatLng(-33.66855343,151.2958685)); //from
           poi.add(new LatLng(-33.66961962,151.3114906)); // to
           polyLineOptions.width(7);
           polyLineOptions.geodesic(true);
           polyLineOptions.color(getResources().getColor(R.color.black));
           polyLineOptions.addAll(points);
           Polyline polyline = mGoogleMap.addPolyline(polyLineOptions);
           polyline.setGeodesic(true);
于 2018-05-07T09:14:59.133 回答