Increasing selection tolerance in AGOL?

317
0
10-28-2020 02:06 PM
PRuss
by
New Contributor III
Will this solution listed here for increased click tolerance work in Web App Builder (ArcGIS Online)? Or perhaps a newer solution exists? 
We have valid feedback for a viewer here: "I am having a little trouble finding the right place to click to get the info box to pop up on some projects.  Can you add a selection feature to make that easier?"
 
Please see attached syntax error I am seeing when attempting to use the suggested code in AGOL's (within WAB) Configure Popups (does a JS to Arcade converter exist?) and the code copy / paste below.

In 3.x, you can do this by overriding the "_calculateClickTolerance" function of the map's popupManager property. For example:

 

map.popupManager._calculateClickTolerance = function(graphicsLayers) {
    return 10;
};

 

That is a very simplistic example, but you could implement whatever logic you want inside that function as long as you return an integer (preferably non-negative).

I've read through Your Arcade Questions Answered but have not found a solution yet.

 

p.s.

In ArcGIS Desktop

 

under Selection -> Selection Options -> Selection tolerance

 

exists and wondering where the similar option is in AGOL (WAB) for configure popups.

0 Kudos
0 Replies