Andriy Ivanov ,
Actually i want to get the symbology attached with the layer i have opened using mapservices. i have gone through with the explorer object diagram, i think it is possible if i assign the target layer from mapdisplay as a featurelayer and get its renderer property. pls let me know in this reagrd if u have ny idea.
Thanks Maximus
Regarding, accessing FeaureLayer through c# code in arcExplorer, I am facing problem in implementing the code snippet which has given on ESRI resources @ http://resources.esri.com/help/900/arcgisexplorer/sdk/doc/49051a25-7752-415b-8925-06e8e83c1114.htm
which says:
[C#]
//Return the feature layer.
FeatureLayer campsitesLayer = Application.ActiveMapDisplay.Map.FindByName(
"Campsites")as FeatureLayer;
//Return the renderer associated with the layer.
FeatureRenderer renderer = campsitesLayer.Renderer;
//Assign a new symbol to the layer.
renderer.SetSymbol(Symbol.Marker.Recreation.Camping);
When I give like,
FeatureLayer fl = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map.FindByName(
"Cities")as FeatureLayer;
nothing is being assigned to "fl" .. and "fl" remains null.
And in the code snippet, it is written like "Application.ActiveMapDisplay.Map.FindByName(
"Campsites")as FeatureLayer;"
but without adding " ESRI.ArcGISExplorer.Application." in the front of the code given there, ambiguity error arises in my ArcExplorer.
Can anyone help with this problem.!!