I am able to draw multiple polyline in google map and style them, but I want to color each polyline with a different color.
Currently, I have this code:
The above answers are correct. This would results in separated polylines. This could be improved by adding round start caps and round end caps of each polylines.
polyline.setEndCap(new RoundCap()); polyline2.setStartCap(new RoundCap());