New answers tagged

0

toolEventInfo.selected This does not seem to be documented anywhere (as of 4.18, even if using the 4x typings), but through debugging, I was able to find pathIndex (previously segmentIndex) and pointIndex in the event fired from sketch.update sketch.on("update", (event) => { const toolEventInfo = event.toolEventInfo; if (toolEventInfo &...


0

In Version 4.x, use the following map methods: map.add(layer); map.remove(layer); map.removeAll(); For more info, check out the 4.x JS API Methods for Map.


0

As of version 4.14, there is now a delete method on the Sketch class. sketch.delete(); This will delete the selected graphics associated with the Sketch instance. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#delete


Top 50 recent answers are included