You are using a browser that is no longer supported. Please use the latest version of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. For more information please see the System Requirements.
Skip To ContentArcGIS for DevelopersSign In Dashboard

Unsupported browser

You are using a browser that is not supported. JavaScript API works on the latest versions of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. Use one of these browsers and provide your feedback through GeoNet, the Esri Community.

  • {i18n.unsupportedBrowser.chrome}
  • Firefox
  • Safari
  • undefined
Loading...

Note: Support for 3D on mobile devices may vary, view the system requirements for more information.

This sample shows how to use the Editor widget in 3D with a SceneLayer for attribute editing. This widget is useful as it provides an out-of-the-box experience to help streamline the editing experience within an application.

The Editor widget uses the underlying applyEdits method on SceneLayer, which currently supports only 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. In such circumstances, the associated feature layer is not shared publicly, and will only be accessible to the editor. To make the edits visible to the SceneLayer user, it is necessary to rebuild the cache.

Other helpful resources

Sample search results

TitleSample
Loading...