Javascript viewer shows unwanted transparency

2156
3
06-17-2014 01:48 AM
GeorgeMuammar
New Contributor
Hi I have WMS service created from 2 layers. One is a polygon shading and another from a PNG symbol.

When you view it with the javascript viewer you notice that the symbols are semi-transparent. You see this when the symbols overlap the polygon shading. You can see it here

Note there is no transparency set on the layers in the MXD.
I tried using this layer on ArcGIS online and there is no transparency effect! see here

When I use this layer in my javascript application I do notice the transparency effect. It should not be there.

Any ideas why this is happening or how to fix?
Thanks

PS ArcGIS Server is v. 10.1
0 Kudos
3 Replies
AndyBurns
Occasional Contributor
Hi

Have you tried:

layer.setOpacity(1.0);
0 Kudos
GeorgeMuammar
New Contributor
Hi

Have you tried:

layer.setOpacity(1.0);



Yes it doesn't change anything. I tried 0.2 and it gets very transparent, but 1.0 or anything higher gives the previous result.
The most worrying thing is that when I view the layer using the javascript viewer of ArcGIS Server I see the transparency.
This tells me it is not an error of my application.

Seems strange no one has encountered this before
0 Kudos
AndyBurns
Occasional Contributor

Hi

What version of AGS are you running?

0 Kudos