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.htmwhich 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.!!
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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.