I need a component to select features by drawing a polygon. Do you know where this piece of code can be found? Thanks.
Solved! Go to Solution.
Instead of buffering a point just use the geometry of a drawing.
Shaning,
You will use the Draw Toolbar to draw your polygon geometry.
Draw | API Reference | ArcGIS API for JavaScript
Then you will use the geometry to execute a QueryTask or a selectFeatures method on a FeatureLayer.
Instead of buffering a point just use the geometry of a drawing.
Thanks to both Rob and Tim. Both answers are correct. Sorry for the restriction to credit for 2.
You can always mark Roberts answer as helpful.