kdoman

Can you set different opacities for features in the same layer?

Discussion created by kdoman on Jan 31, 2011
Latest reply on Sep 26, 2011 by Dhliwayo
I am trying to set transparencies for different features within a layer.  Some polygon features are drawn with a thick border and no fill, therefore they don't need to be transparent.  However, some polygon features are solid and need to be transparent to be properly viewed on the map.  I'm using ArcGIS 10 and Javascript API v2.1

Here's what I've tried so far, and the results:

Set transparencies in the .mxd file => "transparent" polygons completely opaque. .mxd layer transparency does not translate.
Set {opacity:0.7} when setting up layer to add to map => makes all layers transparent, washing out polygon borders on some features that need opacity:1.0 to view.
Breaking up layers so that some can be set {opacity:0.7} and others {opacity:1.0} => messes up flow of table of contents, and requires major reworking of identify, query, and other tools.

So far, I haven't found anything in the API that lets me change individual feature opacity.  Any suggestions?

Outcomes