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?
Asked
Active
Viewed 2,167 times
0
-
do you want to draw route between two points? – BSavaliya Jun 01 '17 at 05:47
-
yes but curved line. i already using polyline but polyline curve not that much visible. – Elangovan S Jun 01 '17 at 05:52
-
You should have to try this:- https://stackoverflow.com/a/34133503/6096821 – Shubham Sejpal Jun 01 '17 at 05:59
-
This is for Javascript.can you please tell me for android. – Elangovan S Jun 05 '17 at 05:16
-
Possible duplicate of [Can I draw a curved dashed line in Google Maps Android?](https://stackoverflow.com/questions/43305664/can-i-draw-a-curved-dashed-line-in-google-maps-android) – xomena May 07 '18 at 15:52
1 Answers
-1
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);

user6029103
- 9
- 6