2

I have to do this map in android, but i cant find a way for draw a polygon with icons and take the direction automatically

enter image description here

This the code using javascript that i need to write in Java:

var lineSymbol = {
  path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW
};
lineas = new google.maps.Polyline({
    path: ruta,
    map: GMap,
    icons: [{
        icon: lineSymbol,
        repeat:'60px',
        offset: '50%'
    }],
    strokeColor: color,
    strokeWeight: 2,
    strokeOpacity: 1,
    geodesic:true
});
Community
  • 1
  • 1
Javier Olan
  • 560
  • 7
  • 14
  • I think you can use draw a list of `PolylineOptions` which configured the Arrow you need, For more details, please refer [here](http://stackoverflow.com/questions/17425499/how-to-draw-interactive-polyline-on-route-google-maps-v2-android). – bjiang Sep 11 '15 at 17:47
  • The problem is not drawing the polyline, the problem is add the symbol with a rotation for the direction. – Javier Olan Sep 13 '15 at 14:48
  • I think you can refer [here](http://stackoverflow.com/a/18251754/4186942). – bjiang Sep 14 '15 at 20:24

0 Answers0