Select to view content in your preferred language

Accessing Graphics in KML Layer

696
1
Jump to solution
08-16-2013 12:28 AM
Labels (1)
HumzaAkhtar
Deactivated User
Hi,


I have a basic question. I have a KML layer loaded on the map in WPF as a GroupLayer. How can I access the Graphics of that KML Layers in C#? Would be grateful if someone can point me in right direction.

Thanks
0 Kudos
1 Solution

Accepted Solutions
AnttiKajanus1
Deactivated User
KmlLayer has property called Graphics (http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client.Toolkit.DataSou...) that you can use.

So something like this:
// Get layer from map layers collection as KmlLayer var kmlLayer = _map.Layers[layerid] as KmlLayer; // Get loaded graphics from layer  var graphics = kmlLayer.Graphics; //Do stuff with graphics...

View solution in original post

0 Kudos
1 Reply
AnttiKajanus1
Deactivated User
KmlLayer has property called Graphics (http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client.Toolkit.DataSou...) that you can use.

So something like this:
// Get layer from map layers collection as KmlLayer var kmlLayer = _map.Layers[layerid] as KmlLayer; // Get loaded graphics from layer  var graphics = kmlLayer.Graphics; //Do stuff with graphics...
0 Kudos