Can you change the tolerance of the select action in Smart Editor?

493
3
03-21-2019 06:17 AM
ColinCampbell
Occasional Contributor

Hi,

Is there any way to alter the tolerance on the select action when using the Smart Editor widget?  At the moment when a user selects an object to edit it often selects multiple objects some way away from where the mouse was clicked (and not objects a user would intuitively expect to be selected).

To compound this issue, out of the multiple records selected it often fails to highlight the one that exactly intersects the point of clicking as the first/primary record of the selection.  Which is even more confusing to the user.

The image below shows an example of this.  The central polygon is selected by the cursor.  It and two adjacent polygons are also selected, but the 'primary' one (the one showing first in the form, highlighted in blue), isn't the polygon intersecting the cursor.

0 Kudos
3 Replies
GabriellaBarrett
New Contributor

Robert Scheitlin, GISP‌  Hi Robert, Would you know how to do this? Thanks!

RobertScheitlin__GISP
MVP Esteemed Contributor

All,  to adjust the tolerance of the Smart Editor find this line of code in the Widget.js:

selectQuery.geometry = editUtils.pointToExtent(this.map, evt.mapPoint, 20);

And change the "20" to a lower number.

GabriellaBarrett
New Contributor

Thank you!

0 Kudos