Created Stylx file in ArcGIS Pro. using SymbolStyle API, open the Symbol. But, how to create renderer to add graphicoverlay. please help me.
this shows the overall topic to your problem in C#. Think that could help.Display military symbols with a dictionary renderer—ArcGIS Runtime SDK for .NET (WPF) | ArcGIS for Developers
Thanks for your reply. i tried following code.
DictionarySymbolStyle symbolDictionary = await SymbolStyle.OpenAsync(@"D:\ArcGISRuntimeforJava\Test.stylx") as DictionarySymbolStyle;
Not access my stylx file. But it accessing sample mil2525d stylx file. Pls help me.
Please try to Debug the smybolDictionary after the await. There is an attribute Loaded and Error that normally tells you what is wrong.
You could use the below code to display .stylx file created from Pro. Attached is the sample application.
string file_to_stylx = parent.FullName + "\\Data\\style.stylx";
symbolStyle = await SymbolStyle.OpenAsync(file_to_stylx); IList<String> stringList = new List<string>(); stringList.Add("shoppingcenter01"); // key file, you can get this key by opening .stylx file in SQLite database SimpleRenderer simpleRenderer = new SimpleRenderer(await symbolStyle.GetSymbolAsync(stringList)); newFeatureLayer.Renderer = simpleRenderer;
Hope that helps.
Thanks for your help.
Retrieving data ...