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