| Numéro d’ID de bogue |
BUG-000120162 |
| Envoi | February 19, 2019 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS API for JavaScript |
| Version trouvée | 4.20 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | N/A |
| Statut | Known Limit
Après examen par l’équipe de développement, il a été déterminé que ce problème est lié à une limitation connue du logiciel sur laquelle Esri n’a aucun contrôle. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
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"
});
Étapes pour reproduire
ID de bogue: BUG-000120162
Logiciel:
- ArcGIS API for JavaScript