熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

js實現googleMap中虛線的繪制方法

2013-11-15 12:06:32  來源: JSP教程 

  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
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.