AnsweredAssumed Answered

Why isn't my renderer working on this StreamLayer

Question asked by ramgarden on Jan 5, 2018
Latest reply on Jan 7, 2018 by rscheitlin

We are using Javascript API 3.21 and trying to set the renderer for a StreamLayer.  Debugging through the chrome dev tools we can see that it's applying the renderer correctly to the layer but we see all the default blue circles disappear and none ever show.  But we can see the features actually streaming in over the network tab in the websocket connection frames.  Can someone verify this UniqueValueRenderer is valid on their stream layer?

 

{
    "type": "uniqueValue",
    "attributeField": "groupid",
    "visualVariables": [{
        "type": "rotationInfo",
        "field": "heading",
        "rotationType": "geographic"
    }],
    "defaultSymbol": {
        "color": [0, 0, 0, 255],
        "outline": {
            "color": [0, 0, 0, 255],
            "width": 1,
            "type": "esriSLS",
            "style": "esriSLSNull"
        },
        "type": "esriSFS",
        "style": "esriSFSNull"
    },
    "uniqueValueInfos": [{
            "value": "ASB",
            "symbol": {
                "color": [255, 0, 0, 255],
                "outline": {
                    "color": [0, 0, 0, 255],
                    "width": 1,
                    "type": "esriSLS",
                    "style": "esriSLSSolid"
                },
                "type": "esriSFS",
                "style": "esriSFSSolid"
            }
        },
        {
            "value": "WG",
            "symbol": {
                "color": [0, 0, 255, 255],
                "outline": {
                    "color": [0, 0, 0, 255],
                    "width": 1,
                    "type": "esriSLS",
                    "style": "esriSLSSolid"
                },
                "type": "esriSFS",
                "style": "esriSFSSolid"
            }
        }]
}

Outcomes