Drawing multi color PolyLines on Maps V2
I am drawing a plain color PolyLine on my map the following way, and it works great: PolylineOptions polyLine = new PolylineOptions(); polyLine.width(5); polyLine.color(Color.RED); polyLine.geodesic(true); for (int i = 0; i < speed.length; i++) { polyLine.add(new LatLng(lat, lng)); } map.addPolyline(polyLine); Now I would want to draw a polyline with different colors between different points, depending on the speed between those two points. There doesn't seem to be an easy way of doing it. I am referring to this question : draw polylines with different colors on v2 maps , and I can add