AnsweredAssumed Answered

Customizing graphic selection in 100.x

Question asked by va7map on Apr 5, 2019
Latest reply on Apr 23, 2019 by va7map

In 100.x, graphic selection does not seem to be customizable. When graphic overlay's selectGraphics() is called, the map always highlights the graphics with a cyan outline.

 

In 10.2.x, selection was easily customizable by setting a selectionSymbol on the graphic. Is there an equivalent or similar way in 100.x?

 

From an earlier discussion (https://community.esri.com/thread/195355-selecting-a-graphic-in-agsgraphicsoverlay#comment-688706), it was suggested to manually assign a different symbol upon selection and revert back upon deselection. The problem with this approach is the default cyan outline is still applied to the graphic. Is there a way to disable that cyan outline while still using selectGraphics()? I don't want to skip selectGraphics() because then I will lose the ability to use selectedGraphics() and clearSelection().

Outcomes