AnsweredAssumed Answered

Cannot set opacity for graphicslayer

Question asked by tubakumbara on Mar 12, 2018
Latest reply on Mar 14, 2018 by rscheitlin

Hello

I've added a graphicslayer. and a button.

 

var g = new GraphicsLayer();  // g is global variable: i can use this everywhere

mymap.add(g);

 

Button code

g.opacity = 0.5;

 

but nothing happening. i can see layer opacity as 0.5 on developer tools (f12) console but im seeing layer on 1 opacity.

 

Thanks.

Outcomes