<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fetch extent of the map using REST API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4110#M396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we write logic to calculate extent based on feature geometries? I don't know if its simple or complicated logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 20:03:57 GMT</pubDate>
    <dc:creator>BhavinSanghani</dc:creator>
    <dc:date>2014-12-17T20:03:57Z</dc:date>
    <item>
      <title>Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4107#M393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to find extent of the features after querying to the layer?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. I query Parcel layer using "where"= "GISID IN (100000)" on &amp;lt;mapservice&amp;gt;/&amp;lt;layerid&amp;gt;/query url and I want to find extent of the result.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible using REST API?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ArcGIS Javascript API, I can use graphicsUtils.graphicsExtent() to find extent of the results. Looking similar while using REST API at java layer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 21:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4107#M393</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-12-09T21:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4108#M394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this is possible solely within the REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your original REST API query will return a featureset object, each feature within the featureset will have a geometry. However, the REST API does not seem to have any functions to get the extent of all feature geometries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type of function is normally carried out by the client application. For example in the ESRI JS API you can use the client-side &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.graphicsutils-amd.html"&gt;graphicsutils.graphicsExtent()&lt;/A&gt; method to get the extent of an array of graphics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 21:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4108#M394</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-12-09T21:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4109#M395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Owen, I can't think of a way to do this using only REST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 17:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4109#M395</guid>
      <dc:creator>NicholasHaney</dc:creator>
      <dc:date>2014-12-17T17:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4110#M396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we write logic to calculate extent based on feature geometries? I don't know if its simple or complicated logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 20:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4110#M396</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-12-17T20:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4111#M397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code should do what you want:&lt;/P&gt;&lt;P&gt;var features = &amp;lt;your array of features&amp;gt;&lt;/P&gt;&lt;P&gt;var maxX, maxY, minX, minY;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(var i = 0; i &amp;lt; features.length; i++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(i == 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxX = features&lt;I&gt;.geometry.x;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minX = features&lt;I&gt;.geometry.x;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxY = features&lt;I&gt;.geometry.y;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minY = features&lt;I&gt;.geometry.y;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(features&lt;I&gt;.geometry.x &amp;gt; maxX) {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxX = features&lt;I&gt;.geometry.x;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(features&lt;I&gt;.geometry.x &amp;lt; minX) {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minX = features&lt;I&gt;.geometry.x;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(features&lt;I&gt;.geometry.y &amp;gt; maxY) {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxY = features&lt;I&gt;.geometry.y;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(features&lt;I&gt;.geometry.y &amp;lt; minY) {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minY = features&lt;I&gt;.geometry.y;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var extent = new Extent(minX, minY, maxX, maxY, new SpatialReference({ wkid:4326 }));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this with a point feature layer. If you are using polygons you will have to use the polygon class's getExtent() method instead of geometry.x or geometry.y. So your code would look something like: features&lt;I&gt;.getExtent().xmin and features&lt;I&gt;.getExtent().ymax&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 21:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4111#M397</guid>
      <dc:creator>NicholasHaney</dc:creator>
      <dc:date>2014-12-17T21:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4112#M398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You certainly could write your own logic to calculate the combined extent but it may be simpler to use a function from an existing library. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are accessing REST via server-side Java code it may be worth looking into some of the Java Spatial libraries such as the &lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/ao_home.html"&gt;ESRI Java ArcObjects SDK&lt;/A&gt;‌ (requires ArcGIS license), &lt;A href="http://www.geotools.org/"&gt;GeoTools&lt;/A&gt; or &lt;A href="https://github.com/spatial4j/spatial4j"&gt;Spatial4j&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note I have not tried the Java GeoTools or Spatial4j as I mostly use JavaScript, python and C#.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 21:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4112#M398</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-12-17T21:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4113#M399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was just thinking you could do this using: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;REST query to get your results (make sure that you request the geometries in the results).&lt;/LI&gt;&lt;LI&gt;REST call to the Union method on a Geometry service (passing in your geometries from the previous step).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in two calls to ArcGIS Server but should be simpler to maintain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 21:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4113#M399</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-12-17T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4114#M400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try this approach. Probably, I need to just add padding based on the extent I found for one / multiple features. Then I can pass that as bbox in ExportWebMapTask json. I guess this would work for all types of spatialReference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 21:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4114#M400</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-12-17T21:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4115#M401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I avoid using another library my project from maintenance point of view. I have one suggestion from ESRI support to use SOE but trying to avoid it. However, I get your point that it may be worth looking at open source code to validate the logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 21:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4115#M401</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-12-17T21:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4116#M402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one would probably same as Nicholas's logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 21:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4116#M402</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-12-17T21:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4117#M403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asked essentially the same question in this post: &lt;A href="https://community.esri.com/thread/104093"&gt;Will future version of Javascript API support non-hosted feature services for QueryTask.executeForExtent and/or FeatureL…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mention in the thread that an Esri developer mentioned the functionality should be in the REST API and in JSAPI at 10.3.1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the 10.3 release though, there seems to be a hint that maybe this functionality is ready (at least for feature services)? &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Feature_Service_Layer/02r3000000r1000000/" style="line-height: 1.5;" title="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Feature_Service_Layer/02r3000000r1000000/"&gt;ArcGIS REST API&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;Look at the &lt;SPAN style="color: #4d4d4d; font-family: 'Courier New', Courier, monospace; font-size: 12px;"&gt;returnExtentOnly &lt;/SPAN&gt;parameter that says it is new at 10.3. I'm not sure how you get the &lt;SPAN style="color: #4d4d4d; font-family: 'Courier New', Courier, monospace; font-size: 12px;"&gt;supportsReturningQueryExtent &lt;/SPAN&gt;parameter to be true though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 21:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4117#M403</guid>
      <dc:creator>MichaelGayheart1</dc:creator>
      <dc:date>2014-12-17T21:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4118#M404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure on this but &lt;SPAN style="color: #4d4d4d; font-family: 'Courier New', Courier, monospace; font-size: 12px;"&gt;supportsReturningQueryExtent may be true based on the published services. It's kind of how supportsDynamicLayers property can become true.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 22:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4118#M404</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-12-17T22:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch extent of the map using REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4119#M405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At 10.3.1 I'm able to add the parameter returnExtentOnly to a REST service call and it only returns the extent. Here is an example: &lt;A href="http://api.imb.org/arcgis/rest/services/LIVE/Urban/MapServer/0/query?where=GENC1%3D%27US-CA%27&amp;amp;returnExtentOnly=true&amp;amp;f=pjson" title="http://api.imb.org/arcgis/rest/services/LIVE/Urban/MapServer/0/query?where=GENC1%3D%27US-CA%27&amp;amp;returnExtentOnly=true&amp;amp;f=pjson"&gt;http://api.imb.org/arcgis/rest/services/LIVE/Urban/MapServer/0/query?where=GENC1%3D%27US-CA%27&amp;amp;returnExtentOnly=true&amp;amp;f=p…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this works for every kind of underlying database, but this service is based on a file geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 17:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fetch-extent-of-the-map-using-rest-api/m-p/4119#M405</guid>
      <dc:creator>MichaelGayheart1</dc:creator>
      <dc:date>2015-05-28T17:46:24Z</dc:date>
    </item>
  </channel>
</rss>

