var layer = map.getLayer('layerid'); layer.graphics[0].symbol.setColor(new dojo.Color("red"));
Solved! Go to Solution.
var layer = map.getLayer('layerid'); // get the symbol var symbol = layer.graphics[0].symbol; // change color symbol.setColor(new dojo.Color("red")); // assign symbol back to graphic layer.graphics[0].setSymbol(symbol);
var layer = map.getLayer('layerid'); // get the symbol var symbol = layer.graphics[0].symbol; // change color symbol.setColor(new dojo.Color("red")); // assign symbol back to graphic layer.graphics[0].setSymbol(symbol);