ArcGIS API for JavaScript根据点坐标画线

2024-12-03 05:51:34
推荐回答(2个)
回答1:

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

回答2:

没有遇到过,等待大神回复!