AnsweredAssumed Answered

change color of features in stream layer service

Question asked by mallareddy2271 on Mar 26, 2019
Latest reply on Mar 26, 2019 by mallareddy2271

hi

 

In stream layer service, I have a "type" field

I was trying to make if type is "a" then color blue

else if "b" then red

else green..........

 

streamLayer = new StreamLayer(url, {

purgeOptions: {

displayCount: 5000,

age: 2.5

}

});

map.addLayer(streamLayer);

 

how to assign color for streamLayer?

 

Thanks

Outcomes