Select to view content in your preferred language

V5 - SceneView / Sketch. Unable to draw points

468
4
03-23-2026 06:10 AM
DavidOke
Emerging Contributor

Hello,

I'm running into an issue on ArcGIS Core / web components 5.0 where sketch will only let me draw one point and attempting to to draw any new point after this will fail to draw. This is reproducible with a simple app:

https://codepen.io/daveoke/pen/XJjeBdX

Issue only happens with a SceneView.

Steps to reproduce:

1. Select the Point drawing tool

2. Draw the first point (point will draw)

3. Any new point after this will fail to draw.

4 Replies
MatthewDriscoll
MVP Alum

You will need a graphics layer to store them in.  See this example. 

0 Kudos
DavidOke
Emerging Contributor

My app does have one and has the same behavior. However, the new Sketch web component actually creates a default graphics layer.

 

The example is from a previous (now deprecated) version using widgets and worked for us in the past.

MatthewDriscoll
MVP Alum

I see.  If you change it from a scene to a map it works fine.  Must be a bug.  You could try like the example as a work around perhaps?  Might need to add an event listener like sketchViewModel.cancel() after each point creation if it acts the same there too.

JoseBanuelos
Esri Contributor

@DavidOke  ,
This has been resolved at version 5.0.17.
https://developers.arcgis.com/javascript/latest/release-notes/#5017-04162026

Apologies for the regression, and thank you for reporting this to the team.

0 Kudos