laptop and a wrench

Bug

In the ArcGIS API for JavaScript 4.10 Sketch widget, setting the mode option in the create() method to click or freehand does not work.

Last Published: January 17, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000118053
SubmittedNovember 8, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.9
StatusWill Not Be Addressed

Additional Information

The issue is a timing issue. The Sketch widget can be added and created without having to wait for the view to instantiate. Then call the create method when view is instantiate.The following test app shows that it is working. https://codepen.io/anon/pen/LMvadN?&editable=true&editors=100

Steps to Reproduce

Bug ID: BUG-000118053

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options