Select to view content in your preferred language

dynamic layer transparency

2763
6
08-09-2010 11:58 AM
BryanWestphal
Deactivated User
I have an issue with a dynamic polygon layer not being transparent (set to 50% in arcmap) in my flex application.  I have the image output of the dynamicservicelayer as png24.  Attached is an image of what it looks like in my application.  When in arcmap, the buffers are transparent.  Any ideas or comments would be appreciated.

thanks for your time.
Tags (2)
0 Kudos
6 Replies
DasaPaddock
Esri Regular Contributor
Try setting alpha on the layer to 0.5.
0 Kudos
HessCorporation
Emerging Contributor
It's better to set the transparency in Flex rather than ArcMap.

Leave the layer as 100% in ArcMap then go into the <ArcGISDynamicMapService/> tag and set the alpha to 0.5.
0 Kudos
BryanWestphal
Deactivated User
that is what i have done in the mean time, but that also reduced the alpha of the other features that i have in my dynamic layer, such as my parcel data set, and it makes it tough to see then. 

shouldn't the alpha settings in ArcMap come through like the rest of the symbology?
0 Kudos
DrewDowling
Frequent Contributor
My limited understanding of this is that when the server creates an image for a dynamic map service the alphas for a layer are only relative to other layers in the same image at creation time. The image itself, once created, has only an overall alpha, this is controlled by Flex.

I don't think there is any way to control the alphas of individual layers using flex unless you create a service for each layer.

I could be wrong on all of this.
0 Kudos
DasaPaddock
Esri Regular Contributor
Bryan,

You should get the behavior you're looking for if you publish an optimized msd and request png32 images. If you do this, then the exported image should maintain transparency for each pixel's alpha channel.
0 Kudos
JasonLevine
Deactivated User


You should get the behavior you're looking for if you publish an optimized msd and request png32 images. If you do this, then the exported image should maintain transparency for each pixel's alpha channel.


Dasa,
   Thanks for this tip!  I usually set my imageFormat to png24 and I always wondered why the layer transparencies I set in my mxd never got represented in the service.

-Jason
0 Kudos