代码中symbol设置:
123456789
var symbol = { type: "simple-fill", // autocasts as new SimpleFillSymbol() color: [ 51,51, 204, 0.9 ], style: "solid", outline: { // autocasts as new SimpleLineSymbol() color: "white", 1 }};
问题原因及解决方法:
受到高程影响,导致部分面要素被遮盖。
设置FeatureLayer的elevationInfo属性:
FeatureLayer
elevationInfo
123456
const layer = new FeatureLayer({ ..., elevationInfo: { mode: "on-the-ground" },});