Select multiple features

4117
1
06-08-2016 11:15 PM
SadanandacharB1
New Contributor III

Hi All,

               I am new to arcgis javascript api, I want to select multiple features on the map using polygon and show the resultent attributes in a datagrid, i need some examples for this , Please help on this issue

Thank You

Sadanand

0 Kudos
1 Reply
PanagiotisPapadopoulos
Esri Regular Contributor

first you have to allow to draw a polygon graphic in to the map.

see this sample how to use draw toolbar Add graphics to a map | ArcGIS API for JavaScript

then you have to use this polygon graphic in order to select features from an another layer

see this sample how to execute spatial queries Select features within a two minute drive time | ArcGIS API for JavaScript

finally the results form the query must be the data store for a dgrid object. Also you can use the Feature Table for this

DataGrid with zoom button | ArcGIS API for JavaScript

Using FeatureTable | ArcGIS API for JavaScript