是否可以添加箭头头使用Android地图V2聚线箭头、地图、聚线、Android

2023-09-05 23:08:49 作者:你是我一生的赌注

如何绘制箭头(它指示的方向),使用Android地图V2 API的多线。在 Android地图文档此选项没有available.Is有可能在多段线添加箭头?

How to draw poly line with arrow head(It indicates the direction) using Android Maps V2 API. In Android Maps Documentation this option is not available.Is it possible to add arrows on polyline?

推荐答案

试试下面的链接希望它可以帮助你!

Try the link below hope it may help you!!

折线

GoogleMap map;
 // ... get a map.

 Polyline line = map.addPolyline(new PolylineOptions()
     .add(new LatLng(51.5, -0.1), new LatLng(40.7, -74.0))
     .width(5)
     .color(Color.RED));

example