Dear Community,
I have a quite busy MapTool which allows user to sketch a shape and then based on its geometry, I perform some geometry operations (using GeometryEngine), http async calls and add the results to graphics layer and to a backend feature class.
here is short snippet:
protected override Task<bool> OnSketchCompleteAsync(Geometry geometry)
{
return QueuedTask.Run(async () =>
{
//logic is here
});
}
Unfortunately, as this is quite lengthy process, I get my Ribbon bar frozen (attached) and the graphics layer does redraw at all. Once the processing is done, the UI becomes responsive again and the graphics are displayed in the MapView.
My question is if such behaviour is expected to see as there are some operations related to MapView (adding graphics)?
Any advice is much appreciated!
Bests,
Adam