Error using edit toolbar on circles

675
1
06-28-2017 11:29 AM
NavanJohnson
New Contributor II

I am trying to use the edit toolbar to edit graphics on my map. It works great for points, lines, polygons. However, any edit operation I try to perform (scale, rotate, move) all just cause the circle to disappear. I thought it must be something weird in my code, so I started with the basic Esri example page (ArcGIS API for JavaScript Sandbox). I did a minimal change to it, just adding a circle, in this fiddle (Edit fiddle - JSFiddle).

You can see that you can click on the graphics and edit them fine, but if you do it to the circle there is some error. Any idea what might cause this?

Tags (3)
0 Kudos
1 Reply
FC_Basson
MVP Regular Contributor

I checked and you're right - it looks buggy.  I can't say what the issue might be, but I tested on a circle added from user input using the drawing toolbar and then the editing works - see Draw & Edit - JSFiddle .  So it looks like the circle object is problematic when adding it progammatically.  The browser debug console outputs a bunch of errors on the circle move event:

0 Kudos