I need a component to select features by drawing a polygon. Do you know where this piece of code can be found? Thanks.
Instead of buffering a point just use the geometry of a drawing.
Select with Feature Layer | ArcGIS API for JavaScript
You can always mark Roberts answer as helpful.
Thanks to both Rob and Tim. Both answers are correct. Sorry for the restriction to credit for 2.
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.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.