经常大腕ArcGISAPIforJ**aScript根据点坐标画线第1个回答:he**enx12016-02-12关注varl

第1个回答:

he**enx12016-02-12关注var line = new esri.geometry.Polyline({   "paths": [[[-122.68,45.53], [-122.58,45.55],[-122.57,45.58],[-122.53,45.6]]],   "spatialReference": { "wkid": 4326 }});var lineSymbol = new esri.symbol.CartographicLineSymbol(  esri.symbol.CartographicLineSymbol.STYLE_SOLID,  new dojo.Color("#0000FF"), 2,  esri.symbol.CartographicLineSymbol.CAP_ROUND,  esri.symbol.CartographicLineSymbol.JOIN_MITER, 5);var polyline = new esri.Graphic(line, lineSymbol);