<?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: add zoom action when select feature in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-zoom-action-when-select-feature/m-p/1233789#M79402</link>
    <description>&lt;P&gt;You could &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch" target="_self"&gt;watch&lt;/A&gt; for when the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visible" target="_self"&gt;popup is visible&lt;/A&gt;, then zoom to the selected feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;reactiveUtils.watch(
 () =&amp;gt; view.popup.visible,
 () =&amp;gt; {
   console.log(`Popup visible: ${visible}`);
 });&lt;/LI-CODE&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Here is another possible solution&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/zoom-to-selected-feature-using-javascript/td-p/298793" target="_blank"&gt;Solved: Zoom to selected feature using JavaScript - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 15:55:30 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2022-11-21T15:55:30Z</dc:date>
    <item>
      <title>add zoom action when select feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-zoom-action-when-select-feature/m-p/1233585#M79391</link>
      <description>&lt;P&gt;I use ArcGIS API for Javascript to build app, now I built have a list of selections and map, I want to zoom on selected feature when select it.&lt;/P&gt;&lt;P&gt;my code same as this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurefilter-attributes" target="_self"&gt;URL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 10:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-zoom-action-when-select-feature/m-p/1233585#M79391</guid>
      <dc:creator>DasheEbra</dc:creator>
      <dc:date>2022-11-20T10:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: add zoom action when select feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-zoom-action-when-select-feature/m-p/1233789#M79402</link>
      <description>&lt;P&gt;You could &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch" target="_self"&gt;watch&lt;/A&gt; for when the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visible" target="_self"&gt;popup is visible&lt;/A&gt;, then zoom to the selected feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;reactiveUtils.watch(
 () =&amp;gt; view.popup.visible,
 () =&amp;gt; {
   console.log(`Popup visible: ${visible}`);
 });&lt;/LI-CODE&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Here is another possible solution&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/zoom-to-selected-feature-using-javascript/td-p/298793" target="_blank"&gt;Solved: Zoom to selected feature using JavaScript - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 15:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-zoom-action-when-select-feature/m-p/1233789#M79402</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2022-11-21T15:55:30Z</dc:date>
    </item>
  </channel>
</rss>

