Change Graphic Symbol

450
1
11-23-2017 07:15 AM
RodrigoFelga
New Contributor III

I have a GraphicsLayer with point symbols and I want to highlight the symbol when the user hover that symbol. I'm doing that using the view.hitTest method but the symbol is not updated. The solution I found is moving the center of the view slightly and that way the symbol is updated but the performance is very poor, causing a delay to highlight the symbol. removing and adding the graphic to the GraphicsLayer could be a solution but the order of the graphics is important to me. Is there a way to refresh the GraphicsLayer or just the Graphic itself?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Rodrigo,

  How about just adding a new graphic on mouse over (leaving the original alone) and removing when mouse out?

0 Kudos