Polygons are rendered with jagged lines when displayed in ArcGIS API for JavaScript.
上次发布: September 23, 2021ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000120162
已提交
February 19, 2019
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
4.20
操作系统
Windows OS
操作系统版本
N/A
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
When polygons are added client-side, the polygon geometries need to be OGC compliant. If not, the geometryEngine.simplify method must be used to simplify the polygons. The polygon must be simplified before it is added to the FeatureCollection. Refer to https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#simplify for more information.
This behavior is documented in the polygon class. Refer to https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html for more information. See known limitations in the Overview section.
For example:
graphic.geometry = geometryEngine.simplify(graphic.geometry);
var featureLayer = new FeatureLayer({
fields: fields,
renderer: renderer,
source: [graphic],
id: "myLayer"
});