不具合 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.
再現の手順