arcgis javascript is it possible to select by location ?

3697
2
12-06-2015 11:31 PM
Edwin_KohKah_Hao
New Contributor

i am selecting from different layer where 1st layer is 200 distance near from the 2nd layer.

Tags (2)
0 Kudos
2 Replies
Elizabeth_R_Jarvie
New Contributor III

I have used a query Task:

Query | API Reference | ArcGIS API for JavaScript

query.spatialRelationship = Query.SPATIAL_REL_INTERSECTS;

query.geometry = 'geometry for query';

query.distance = 200 (this applied a buffer to the input geometry for the query.

0 Kudos
ChrisSmith7
Frequent Contributor
0 Kudos