Some indexes take awhile to build for certain layers I’m loading, mainly large shapefiles and nautical chart layers. I’d like to move these to a different thread using something like:
Task.Run(() => { NauticalChartsFeatureLayer.BuildIndexFile(filePath, BuildIndexMode.DoNotRebuild); });
However, I noticed the app crashes if the map does any kind of refresh before the index file is built when using the above method.
How exactly is the index file for layers used? Does the layer read from it every time the map is refreshed?
My goal is to have the users still be able to pan/zoom the layer while the index is being built, and then hopefully see a performance increase after the index is finished building.
Thanks!