function drawPrePath(arraycolor){ var sorrow={ path: googlemapsSymbolPathFORWARD_CLOSED_ARROW //arrow }; var lineSymbol = { path: M strokeOpacity: scale: }; var pathCoord = [ new googlemapsLatLng( )new googlemapsLatLng( ) new googlemapsLatLng( )new googlemapsLatLng( ) ]; path = new googlemapsPolyline({ path: pathCoord strokeColor:"#ddd" strokeOpacity: strokeWeight: icons:[{icon:lineSymboloffset: repeat: px}] map:map }); pathsetMap(map);}
var lineSymbol = {path: M strokeOpacity: scale: };
关键在于’M
’ 其实这是SVG的绘制路径的写法
具体什么意思我还解释不清楚
嘻嘻 自己学svg教程吧!