Select to view content in your preferred language

Select graphics and features in layers with Sketch and Editor components

30
0
2 hours ago
YixuanEmilyHu
Esri Contributor
1 0 30

You can select graphics created from sketch in addition to features from existing layers on the map natively without any custom configuration, just with <arcgis-sketch> and <arcgis-editor> components. Here is an example app using <arcgis-sketch /> and <arcgis-editor />:

What is the app doing?

  • The app contains <arcgis-editor /> for the selection experience for layers on the map and graphics drawn from sketch.
  • <arcigs-editor /> has a sync-view-selection property that allows editor to select any layers on the view, including the graphics layer from sketch.
  • The app has existing graphics to show that graphics can be selected that were not drawn with sketch.
  • The app has <arcgis-sketch /> which allows you to draw graphics.
  • Sketch allows you to select all graphics on the map, but not the other layers. Sketch does not have a sync-view-selection because sketch doesn’t care about non-graphics layers.

Stay tuned for more components and enhancements in editing workflows in the future releases for you to do more advanced editing with better user experience.

Contributors