Select to view content in your preferred language

Load Text Symbols from stlyx file

395
2
Jump to solution
09-02-2024 04:56 AM
AsimIkram
New Contributor

Hi,

I have a mobile stlye stylx file created via ArcGIS Pro that has point, line, polygon, and text symbols. I am using the arcgis maps sdk for .net to read the symbols using the following code.

SymbolStyle symbolstyle = await SymbolStyle.OpenAsync(pathToStlyx);

SymbolStyleSearchParameters searchParams = await symbolstyle.GetDefaultSearchParametersAsync();


This code reads point, line, and polygon symbols from the file but does not read text symbols. The text symbols are very clearly present in the file and can also been seen when opening the file in ArcGIS Pro. Is there a method that I can use to read text symbols as well? Thank you

 

0 Kudos
1 Solution

Accepted Solutions
PreetiMaske
Esri Regular Contributor

ArcGIS Maps SDK for Native apps only support line, point and polygon symbols from a stylx. Stylx containing other types of symbols or elements is currently not supported and is expected to return empty results.

View solution in original post

0 Kudos
2 Replies
PreetiMaske
Esri Regular Contributor

ArcGIS Maps SDK for Native apps only support line, point and polygon symbols from a stylx. Stylx containing other types of symbols or elements is currently not supported and is expected to return empty results.

0 Kudos
PreetiMaske
Esri Regular Contributor

Although it is not supported at the moment, but this is an interesting usecase and I would like to learn more about your workflow and how do you intend to use text symbols from stylx in your Native app. 

Looking forward to hear about your workflow.

Thanks

0 Kudos