Select to view content in your preferred language

ArcGIS API for JavaScript: How to select features inside a buffer and point selection is not working

2003
4
Jump to solution
10-17-2014 03:00 AM
HabG_
by
Frequent Contributor

Hi All,

I can select features using point, extent, circle and freehand polygon. When I do buffer (e.g. 5 mile radius), I want the selection to include the features inside the buffer zone (at the moment it only selects features in side the polygon). The second issue is when I use the point button to select features it is selecting the polygon features but not the point features (I think I'm supposed to use tolerance but I don't know how). Here is a link to the jsfiddle.

Thanks

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor
4 Replies
KenBuja
MVP Esteemed Contributor

You create the buffer but you don't select the features from the featurelayers using that geometry. You're using the geometry obtained from the DrawEnd event instead. You should move that section to the showBuffer

0 Kudos
HabG_
by
Frequent Contributor

Thanks Ken. I'm a bit confused, would you please show me using the attached example?

Thanks

0 Kudos
KenBuja
MVP Esteemed Contributor

Something like this

HabG_
by
Frequent Contributor

Thanks Ken, this is perfect.

0 Kudos