I am trying to add a SimpleFillSymbol() and TextSymbol() in a single graphics() after draw polygon on the feature layer. Independently they are working fine but i want to combine these two symbols.
Here is the code :
// SimpleFillSymbol code
var symbol = new SimpleFillSymbol(
var symbol1 = new esri.symbol.TextSymbol();
symbol1.setColor(new dojo.Color([0, 255, 0]));
var graphic = new Graphic(evt.geometry, symbol);
I have attach the HTML file of a sample feature layer.