Changing a TextSymbol's text after it has rendered

519
1
05-08-2013 11:46 AM
LangdonOliver
New Contributor
I tried calling TextSymbol::setText('xxx') after my text symbol was rendered on the map, but it doesn't seem to update.

Is there a way to change an already-rendered TextSymbol's text without removing/re-adding it to the map?

Thanks!
0 Kudos
1 Reply
KellyHutchins
Esri Frequent Contributor
You'll want to update the text symbol associated with the graphic. So get the graphic then get it's symbol and update that text.

graphic.symbol.text = "Updated Text";
myGraphicLayer.refresh();
0 Kudos