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.

Zuletzt veröffentlicht: January 17, 2019 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000118053
EingereichtNovember 8, 2018
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version4.9
StatusWill Not Be Addressed

Zusätzliche Informationen

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

Schritte zur Reproduzierung

Bug-ID: BUG-000118053

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln