AnsweredAssumed Answered

Interacting with kml generated polygons

Question asked by sous2817 on Jan 25, 2012
Latest reply on Jan 27, 2012 by sous2817
Hello,

I'm fairly new to WPF and even newer to the ArcGIS API.  Currently I can load a kml file and it overlays a polygon on the map:

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click         Dim theKmlLayer As New ESRI.ArcGIS.Client.Toolkit.DataSources.KmlLayer          ' Set the KmlLayer's ID.         theKmlLayer.ID = "Test Layer"          ' Set the Url of the KmlLayer. Note the Url takes a Uri object!         theKmlLayer.Url = New Uri("c:\junk\SiteMap5.kml")          ' Add the KmlLayer to the Map. An automaic refresh of the Map and Legend Controls will occur.         Map1.Layers.Add(theKmlLayer)      End Sub


But how do I now interact with that polygon, things like setting the opacity, fill, etc.?  That all seems to escape me.  Ideally, I'd like to loop through the polygons and do stuff to them.  Is there any tutorials on that, or would someone be willing to point me in the right direction?

Thanks in advance!

Outcomes