Select to view content in your preferred language

How do I redraw a graphicLayer in 4.x?

805
2
04-13-2022 10:55 AM
MattStayner
Frequent Contributor

How do I redraw a graphicLayer in 4.x? In 3.x, there was this great redraw method.

I'm custom editing a feature's attributes. I want to redraw the layer after I have made the update so the symbol updates. If I zoom in/out then the feature updates. I want to do it without waiting for the user to zoom.

Tags (2)
2 Replies
UndralBatsukh
Esri Regular Contributor

Hi there, 

The GraphicsLayer should update without you having to do anything additional. Which version of the 4.x api are you using? Do you have a reproducible case? 

Thanks,

0 Kudos
DanielWebb
Frequent Contributor

I'm also curious about this. I'm currently using 4.25 and want to dynamically change a TextSymbol placed on a map. Doing graphic.symbol.text = newText does indeed change the attributes of the graphic, but it does not update on the map.

0 Kudos