AnsweredAssumed Answered

4.0 beta UniqueValueRenderer not rendering

Question asked by sarahclark on Jul 23, 2015
Latest reply on Jul 24, 2015 by YCabon-esristaff

Hi - Just testing out the 4.0 beta API. I must be doing something wrong in the parameters because my whole layer is symbolized with the Default symbol?

 

    var outline1= new SimpleLineSymbol({
        color : [255, 0, 0, .5],
        style : 'solid',
        width : .5
    });

    var sym1= new SimpleFillSymbol({
        color : [0, 0, 0, 0],
        outline : outline1,
        style : 'solid'
    });

    var sym2= new SimpleFillSymbol({
        color : [0, 0, 255, .5],
        outline : outline1,
        style : 'solid'
    });

    var easementUVR = new UniqueValueRenderer({
        attributeField : 'IData.dbo.O4.Stat',      // Joined field in the service
        defaultLabel : 'Test Default',
        defaultSymbol : sym1,
        infos : [{
            value : 'Test1',
            symbol : sym2,
            label : 'Test 1'
        }]
    });

Outcomes