I searched a lot i didn\'t find any proper solution for it.Help and link could be appreciated :-)
You could see this 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());