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教程吧!
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20303.html