Increasing click tolerance?

128
0
10-28-2020 08:46 AM
PRuss
by
New Contributor III
Will this 2016 solution listed here for increased click tolerance work in Web App Builder (ArcGIS Online)? Or perhaps a newer solution exists? 
We have valid feedback: "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).

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