AnsweredAssumed Answered

Fetch extent of the map using REST API

Question asked by bforbhavin on Dec 9, 2014
Latest reply on May 28, 2015 by MichaelGayheart

How to find extent of the features after querying to the layer?

 

e.g. I query Parcel layer using "where"= "GISID IN (100000)" on <mapservice>/<layerid>/query url and I want to find extent of the result.

 

Is this possible using REST API?

 

In ArcGIS Javascript API, I can use graphicsUtils.graphicsExtent() to find extent of the results. Looking similar while using REST API at java layer.

 

I am exporting map document using print utility service based on the "where" criteria and "mapservice" url I have. I do not instantiate map document. I use ExportWebMapTask to export the map document. I want to make sure that when I export the map document, extent of the result is zoomed-in appropriately.

Outcomes