Drawing multiple polyline with different color using Google map api V3 ASP.net

前端 未结 3 1938
后悔当初
后悔当初 2020-12-09 12:40

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:



        
3条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 13:08

    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());
    

提交回复
热议问题