ArcGIS API for JavaScript根據兩個點座標在地圖上畫線
比如說a(xxxx,xxxxx),b(xxxx,xxxxx)。利用這兩個點畫一條線
var polyline = new esri.geometry.Polyline([[xxx,xxx],[xxx,xxx]]);
var symbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,255,0]), 2);
var graphic = new esri.Graphic(polyline, symbol);
map.graphics.add(graphic);