2017-07-17 121 views
0

我想按行進行彎曲,但代碼不工作。我使用Turf.js製作貝塞爾線。在arcgis中添加Turf後無法顯示圖形圖層

var line = { 
      "type": "Feature", 
      "properties": { 
      "stroke": "#f00" 
      }, 
      "geometry": { 
      "type": "LineString", 
      "coordinates": [ 
       [-76.091308, 18.427501], 
       [-76.695556, 18.729501], 
       [-76.552734, 19.40443], 
       [-74.61914, 19.134789], 
       [-73.652343, 20.07657], 
       [-73.157958, 20.210656] 
      ] 
      } 
     }; 
     var curved = turf.bezier(line); 
     var bg = new Graphic(curved, basicSymbol, {}, null); 

     graphicsLayer.add(bg); 

我做錯了什麼?

回答

相關問題