在 arcgis 中添加 Turf 后无法显示图层 JavaScript

Can't show graphic layer after add Turf in arcgis JavaScript

我想按直线制作曲线,但代码无法运行。我使用 Turf.js 制作贝塞尔曲线。

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

我是不是做错了什么?

ArcGIS API 不支持绘制贝塞尔线。

参考文献: