我必须在android中做这个地图,但我找不到用图标绘制多边形的方法并自动采取方向
这个代码使用我需要用Java编写的javascript:
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
});