AnsweredAssumed Answered


Question asked by Mark_S_B on Aug 11, 2016
Latest reply on Aug 11, 2016 by fcbassongis

Hi all

Using jsapi 4


Am now trying to symbolise some species polygons based on a field where a species distribution range is resident, breeding, non-breeding etc. I am passing a query into a graphic layer and can symbolise ranges using the following:


function getQueryResults(response) {

    var parcelResults =, function(feature) {


    feature.symbol = new SimpleFillSymbol({ 

            color: [255, 255, 0, 0.25], 

            style: "solid", 

            outline: { 

                color: [255, 255, 0], 

                width: 3 




        return feature; 


    return parcelResults; 



Obviously, this returns each species distribution part in yellow when what I want to do is use UniqueValueRenderer but cannot seem to get this to work here, any help/advice much appreciated.