<?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 fullExtent of featureLayer created from featureCollection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227952#M21274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to get the fullExtent of a featureLayer that when first created is based on a featureCollection. As I use the featureLayer I'll be editing it, adding/removing points based on other service queries. Every time I add data I want to zoom the map to the extent of the points on the map, which I would expect to be the featureLayer.fullExtent values. However, this extent value it typically undefined. Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/fl_featurecollection" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/fl_featurecollection&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2013 15:55:27 GMT</pubDate>
    <dc:creator>LukePhilips</dc:creator>
    <dc:date>2013-02-04T15:55:27Z</dc:date>
    <item>
      <title>fullExtent of featureLayer created from featureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227952#M21274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to get the fullExtent of a featureLayer that when first created is based on a featureCollection. As I use the featureLayer I'll be editing it, adding/removing points based on other service queries. Every time I add data I want to zoom the map to the extent of the points on the map, which I would expect to be the featureLayer.fullExtent values. However, this extent value it typically undefined. Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/fl_featurecollection" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/fl_featurecollection&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 15:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227952#M21274</guid>
      <dc:creator>LukePhilips</dc:creator>
      <dc:date>2013-02-04T15:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: fullExtent of featureLayer created from featureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227953#M21275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Luke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure whether there's a method or property to return this directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, you could iterate through the geometries in your feature collection and &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#Extent/union"&gt;union&lt;/A&gt;&lt;SPAN&gt; the extents cumulatively. The end result would be the combined extent of all features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 20:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227953#M21275</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-02-04T20:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: fullExtent of featureLayer created from featureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227954#M21276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The esri namespace methods provides a utility that will return the extent of a graphic array&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_esri/esri.graphicsExtent" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_esri/esri.graphicsExtent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.graphicsExtent(graphics)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this can help you.&amp;nbsp; I use it to zoom to selected features/grpahics on a map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 20:58:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227954#M21276</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2013-02-04T20:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: fullExtent of featureLayer created from featureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227955#M21277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for both of your answers, using the graphicsExtent gets exactly what I need. I was thinking the featureLayer.fullExtent property &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#FeatureLayer/fullExtent"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#FeatureLayer/fullExtent&lt;/A&gt;&lt;SPAN&gt; would have done that, but I guess not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 21:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fullextent-of-featurelayer-created-from/m-p/227955#M21277</guid>
      <dc:creator>LukePhilips</dc:creator>
      <dc:date>2013-02-04T21:59:20Z</dc:date>
    </item>
  </channel>
</rss>

