Disable Map Click Spinner

901
5
Jump to solution
06-27-2022 01:22 PM
ShaneBuscher1
New Contributor III

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. 

0 Kudos
1 Solution

Accepted Solutions
ShaneBuscher
Occasional Contributor

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

View solution in original post

5 Replies
KellyHutchins
Esri Frequent Contributor

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

0 Kudos
ShaneBuscher1
New Contributor III

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. 

0 Kudos
ShaneBuscher
Occasional Contributor

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

Mayur_Shinde
New Contributor

Is this solved in 4.24? As I am able to reproduce in 4.24

Is there a way to disable it?

Tags (1)
0 Kudos
ShaneBuscher
Occasional Contributor

BUG-000150627 has not been fixed yet.

0 Kudos