How can I improve the performance of loading data into map when using ArcGIS Pro SDK?

227
0
06-19-2023 06:28 AM
DSK_Stephan
New Contributor

I want to load data into a current map. For this purpose, I want to use a .lyrx file. Currently, I have implemented it with:

Uri uriLayerPath = new Uri(strLayerPath);
LayerFactory.Instance.CreateFeatureLayer(uriLayerPath, map, LayerPosition.AddToBottom);

It works well in principle, but the performance is very poor compared to the 'Add Data' dialog in Pro.

How can I improve the performance?

0 Kudos
0 Replies