laptop and a wrench

Error

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.

Última publicación: January 17, 2019 ArcGIS API for JavaScript
Número de ID del error BUG-000118053
EnviadoNovember 8, 2018
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.9
EstadoWill Not Be Addressed

Información adicional

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

Pasos para reproducir

ID del error: BUG-000118053

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga