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);

 

相关文章:

  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案