laptop and a wrench

漏洞

In ArcGIS Maps SDK for JavaScript 4.26, the code line 'allowedWorkflows:["create-features"]' does not hide the Select button in the Editor widget when using hosted feature services based on templates.

ArcGIS Maps SDK for JavaScript
漏洞 ID 编号 BUG-000158528
已提交May 24, 2023
上次修改时间December 6, 2024
适用范围ArcGIS Maps SDK for JavaScript
找到的版本4.26
操作系统Windows OS
操作系统版本11.0 64 bit
状态As Designed

附加信息

Updates were made in ArcGIS Maps SDK for JavaScript 4.26 to take into account how workflows are handled that have unupdatable features to allow interaction with attachments, since this is technically supported at the service level. Additional properties are added on the Editor's layerInfos property to take into account how attachment editing is handled. Since the underlying feature layer has attachments allowing attachment editing, set layerInfo.attachmentsOnUpdateEnabled as false on every layer with attachments so the select tool does not show. For an updated CodePen showing how to do this, refer to the following: https://codepen.io/hgonzago/pen/xxQxJrv?editors=1000. Notice the additional lines in the Editor constructor, const editor = new Editor({ view: view, allowedWorkflows: ["create-features"], layerInfos: [{ layer: featureLayer, attachmentsOnUpdateEnabled: false }] }); The documentation will be updated to be clearer on this.

解决办法

In addition to setting allowedWorkflows: ["create-features"], the layerInfos property must be set and each layerInfo property must set the layer and attachmentsOnUpdateEnabled: false. If any layer used in the Editor has attachments and is not set with this property, the Select tool will display.

重现步骤

漏洞 ID: BUG-000158528

软件:

  • ArcGIS Maps SDK for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项