This sample shows how to use the Editor component in 3D with a SceneLayer for attribute editing. This Editor component is useful as it provides an out-of-the-box experience to help streamline the editing experience within an application.
The Editor component uses the underlying applyEdits method on SceneLayer, which supports attribute updates. The prerequisite for an editable SceneLayer is an associated FeatureLayer with editing enabled. For more information about publishing, see the Publishing section of the scene layer guide topic. The features with edited attributes are rendered with the updated attributes until the number of edited features exceeds 50,000. After that, the edited attributes are not retrieved, and the features are rendered with the cached, outdated attributes.Rebuild the scene layer cache before reaching the maximum number of features to avoid any rendering issues.
In this sample, the editable feature layer is shared to everyone. Therefore, everyone will be able to modify this data. In a real use case, only an authorized editor would be able to edit the layer. For more details related to sharing read section “Sharing scenarios” in the 3D Object Layer: A Comprehensive Overview blog post.