I did this:

dojo.connect(featureLayer, "onUpdateEnd", function() {
        var defaultSymbol = new esri.symbol.SimpleMarkerSymbol().setColor(new dojo.Color([0,0,255]));
        dojo.forEach(this.graphics, function(graphic){

I'm not satisfied with this solution because when I add new features to the layer they are added with a default symbol (black circle). Do you know how to set up symbols for the layer once and for all?

1 Answer 1


Use a renderer. In your case, a SimpleRenderer is probably ideal. There are several samples that demonstrate this...the Unique Value Renderer sample is one.

  • The links are broken :(
    – user3120
    Commented Aug 27, 2013 at 13:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.