Reputation: 202
i want to draw curved line between two points,can any one help me? i used poly line Geodesic but the curve is not that much visible,can i increase the curve size using Geodesic?
Upvotes: 0
Views: 2250
Reputation: 9
Check this:
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);
Upvotes: -1