Looking for a way to programmatically disable the default spinner that appears when clicking on a map. An example of the spinner in question is the one that briefly appears just before a popup, as seen in the animated gif attachment.
I have a custom implementation of the Sketch tool where the user can select polygons from existing layers and edit them as graphics. Spinners have never shown when selecting polygons until upgrading from jsapi 4.19 to 4.24. Now they randomly appear and it takes an extra click to remove them when they do.
How can I control display of this spinner with the api? I can't find any hooks.
Solved! Go to Solution.
Closing this issue which is being caused by a bug with MapView.hitTest. The spinners are being displayed where the map was previously being clicked because there is a delayed execution of hitTest. The bug was introduced in version 4.23: https://developers.arcgis.com/javascript/latest/4.23/#mapviewhittest-improvements.
If its the popup spinner you can set the spinnerEnabled property to false: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#spinnerEnabled
Thanks Kelly for the reply. Unfortunately it's not related to the popup. I am simply listening for MapView click events then using the points to select feature layer polygons via a server query.
Closing this issue which is being caused by a bug with MapView.hitTest. The spinners are being displayed where the map was previously being clicked because there is a delayed execution of hitTest. The bug was introduced in version 4.23: https://developers.arcgis.com/javascript/latest/4.23/#mapviewhittest-improvements.
Is this solved in 4.24? As I am able to reproduce in 4.24
Is there a way to disable it?
BUG-000150627 has not been fixed yet.