Select to view content in your preferred language

Getting the polygon Id.

698
2
12-18-2012 11:25 PM
PrasannaRaghavendar
Occasional Contributor
Hi,
I have a base map and a layer on it which has polygons. How should I get the polygon Id of the polygon that is clicked?

Thanks
Prasanna
0 Kudos
2 Replies
RahulMetangale1
Frequent Contributor
Hi Prasanna,

you have to do a spatial query, following sample would help:
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/query_clickinf...
0 Kudos
PrasannaRaghavendar
Occasional Contributor
Hi,

I have found that I have a webservice method with which I can get the Polygon Id from. But I would need the geometry of the polygon in order to call that method.
How will I get the geometry of the polygon?

Thanks
Prasanna
0 Kudos