brassier

FeatureLayer Click Tolerance

Discussion created by brassier on Apr 7, 2014
Latest reply on Apr 7, 2014 by thebillcarr
Hello -

I have various JS FeatureLayers on my map, and I want to hook in some logic when a feature/graphic is clicked.  This works fine using the "click" event, however, mobile devices have difficulty selecting certain features/graphics.  We have some point/line symbols that are fairly small, making it difficult to tap with a mobile device.

Is there a simple way to buffer these taps when hooking into the FeatureLayer click event?  Or possibly a tolerance setting that I didn't see, similar to the Identify task?  This seems like it has to be a common problem when moving to touch-based devices, so I don't want to reinvent something.

Thanks!

Outcomes