set opacity of polygons independant of each other

Discussion created by sous2817 on Jan 26, 2012
Latest reply on Jan 27, 2012 by sous2817

Hopefully one last question. I've got my kml file to load, and I can set the color based on an attibute, but here's my problem...When my KML file is loaded, all of the polygons are filled white.  I can lessen it by setting the whole kml layer opacity to .5, but once the color is applied, the remaning countries are filled with white.  A workaround I came up with is:

        Dim theKmlLayer As ESRI.ArcGIS.Client.Toolkit.DataSources.KmlLayer = CType(Map1.Layers("MyGraphicsLayer"), KmlLayer)

        Dim fillsymbolcolor As New SimpleFillSymbol
        Dim fillsymbolclear As New SimpleFillSymbol
        fillsymbolcolor.Fill = New SolidColorBrush(Color.FromRgb(255, 0, 0))
        fillsymbolclear.Fill = New SolidColorBrush(Color.FromArgb(0, 0, 0, 0))

            theKmlLayer.Opacity = 0.5

            For Each kl As GraphicsLayer In theKmlLayer
                For Each g As Graphic In kl.Graphics
                    If CStr(g.Attributes("name")) = "United States" Then
                        g.Symbol = fillsymbolcolor
                    g.Symbol = fillsymbolclear
                    End If

but surely there's a way to have the kml file itself come in w/ clear polygons.  If anyone is interested, my kml file is attached.  Ideally, I'd like to KML file to load w/ the polygons not being filled rather than having to loop through every one and apply a clear fill to it. 

Thanks in advance!