Select to view content in your preferred language

Add a graphic layer for selected using  identify tool

730
1
06-06-2011 09:56 PM
MuhammadWaqar_ul_islam
Occasional Contributor
i m using identify tool sample in my application
i want to add graphic layer when i click on map for identify

i m trying 
   
foreach (Graphic selectedGraphic in args.FeatureSet.Features)
            {
                selectedGraphic.Symbol = LayoutRoot.Resources["ParcelSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol;
                _resultsGraphicsLayer.Graphics.Add(selectedGraphic);
            }
it gives error on Featureset (does not contain a defination for FeatureSet)

dont known how to add graphic layer
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
Have you looked at this sample?

Look at IdentifyTask_ExecutedCompleted event handler, you should be accessing args.IdentifyResults.

IdentifyResult has the following members: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.Iden...
0 Kudos