bgfield

Is it possible to add graphics behind a feature layer?

Discussion created by bgfield on Nov 29, 2012
Latest reply on Nov 29, 2012 by JGravois-esristaff
I'm using a graphics layer to create a highlight symbol for when a user clicks on a point feature layer.  I have some events that listen for double-clicks or mouse hovers on the feature layer, but once a user clicks it and the highlight symbol is added, the events no longer work as the feature layer is covered by the graphic layer.  I could re-work the events to listen for double-clicks on the graphic layer, but I'd rather not do that.

I found a post on stackexchange.com that shows how to use the graphic.getDojoShape().moveToBack() method, but it appears it only adds the new graphics under existing graphics, and not feature layers.  Is it possible to do what I'm attempting, or will graphic layers always be added on top of feature layers?

Outcomes