Select to view content in your preferred language

EditTool - Stop graphics from moving to top when Selected

1257
3
Jump to solution
06-07-2013 05:03 AM
Drew
by
Frequent Contributor
Does anyone know how I can disable the  EditTool from bringing the graphics to the top when one is selected?
I want the graphics to stay in the same index they were drawn  visually because I list them out in a List control.

Any thoughts?

Andrew
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor
In version 3.5 (released today), we added a new property, EditTool.autoMoveGraphicToTop, that when true (the default) moves selected graphics to the top of the stack within the parent graphics layer. When set to false, it will do what you asked for 🙂
https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tools/EditTool.html#autoMoveGraphic...

View solution in original post

0 Kudos
3 Replies
Drew
by
Frequent Contributor
Does anyone know how I can disable the  EditTool from bringing the graphics to the top when one is selected?
I want the graphics to stay in the same index they were drawn  visually because I list them out in a List control.

Any thoughts?

Andrew



* BUMPING POST *

-> My only solution so far is removing and re-adding the graphic back at its original index. This works, but get slow as graphics build up.
0 Kudos
BjornSvensson
Esri Regular Contributor
In version 3.5 (released today), we added a new property, EditTool.autoMoveGraphicToTop, that when true (the default) moves selected graphics to the top of the stack within the parent graphics layer. When set to false, it will do what you asked for 🙂
https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tools/EditTool.html#autoMoveGraphic...
0 Kudos
Drew
by
Frequent Contributor
In version 3.5 (released today), we added a new property, EditTool.autoMoveGraphicToTop, that when true (the default) moves selected graphics to the top of the stack within the parent graphics layer. When set to false, it will do what you asked for 🙂
https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tools/EditTool.html#autoMoveGraphic...


Thanks for adding this!

Drew
0 Kudos