<?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 Set extent of the highlighted features and expand the zoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-extent-of-the-highlighted-features-and-expand/m-p/1284337#M81011</link>
    <description>&lt;P&gt;How to find the extent of the highlighted features on map?&lt;/P&gt;&lt;P&gt;In 3.x, there was a way to find extent of the highlighted (or selected by using FeatureLayer.selectFeatures()) features using&amp;nbsp;&lt;SPAN&gt;graphicsUtils&lt;/SPAN&gt;&lt;SPAN&gt;.graphicsExtent(selectedFeatures).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the extent of the highlighted features in 4.x? Once I get an extent then I want to expand it based on user's settings. I can use goTo(selectedFeatures) but it doesn't seem to have any option to supply zoom factor to expand the extent.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 14:33:49 GMT</pubDate>
    <dc:creator>BhavinSanghani</dc:creator>
    <dc:date>2023-05-01T14:33:49Z</dc:date>
    <item>
      <title>Set extent of the highlighted features and expand the zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-extent-of-the-highlighted-features-and-expand/m-p/1284337#M81011</link>
      <description>&lt;P&gt;How to find the extent of the highlighted features on map?&lt;/P&gt;&lt;P&gt;In 3.x, there was a way to find extent of the highlighted (or selected by using FeatureLayer.selectFeatures()) features using&amp;nbsp;&lt;SPAN&gt;graphicsUtils&lt;/SPAN&gt;&lt;SPAN&gt;.graphicsExtent(selectedFeatures).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the extent of the highlighted features in 4.x? Once I get an extent then I want to expand it based on user's settings. I can use goTo(selectedFeatures) but it doesn't seem to have any option to supply zoom factor to expand the extent.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 14:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-extent-of-the-highlighted-features-and-expand/m-p/1284337#M81011</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2023-05-01T14:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set extent of the highlighted features and expand the zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-extent-of-the-highlighted-features-and-expand/m-p/1284357#M81013</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'd run &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryExtent" target="_self"&gt;queryExtent&lt;/A&gt; method on the layerView using the same expression requirements. This will return an extent of all features meet the criteria. Or you can do something similar in this example:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-find-the-extent-of-an-array-of-graphics/td-p/368324" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-find-the-extent-of-an-array-of-graphics/td-p/368324&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 15:01:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-extent-of-the-highlighted-features-and-expand/m-p/1284357#M81013</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-05-01T15:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set extent of the highlighted features and expand the zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-extent-of-the-highlighted-features-and-expand/m-p/1284945#M81020</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;. queryExtent() has some limitations so I am avoiding it. But the url of the community post you shared looks good. I did not think of the callback of goTo() and expand it. I will try it and see how it goes, thanks for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 20:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-extent-of-the-highlighted-features-and-expand/m-p/1284945#M81020</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2023-05-02T20:23:23Z</dc:date>
    </item>
  </channel>
</rss>

