arcgis api for js 4.0 Polygon改变位置后填充色消失

官网实例shttps://developers.arcgis.com/javascript/latest/sample-code/sandbox/sandbox.html?sample=graphics-basic-3d

改变其中polygon的坐标之后,原有的填充颜色消失

        var polygon = new Polygon([
            [120.184, 51.48391, 400],
            [120.184, 51.49091, 500],
            [120.172, 51.49091, 500],
            [120.172, 51.48391, 400],
            [120.184, 51.48391, 400]
          ]),

polygon的填充色和位置有关?
捕获1.PNG
已邀请:

turtle

赞同来自: Sirius

4.0的情况不了解,通过查看示例发现跟多边形闭合方向有关,顺时针闭合可见填充色,逆时针闭合填充色不可见。示例中原始数据为顺时针方向闭合,题主修改后的为逆时针闭合。

要回复问题请先登录注册