<?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: Home widget / Default Extent when querying by URL params in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/home-widget-default-extent-when-querying-by-url/m-p/1034702#M71988</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;looks like you need to define a viewpoint for the home button to return to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can likely use the extent it initially zooms to with queryExtent to define a viewpoint.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; homeButton = &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; Home({ &lt;/SPAN&gt;&lt;SPAN class="hljs-attr"&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;: view, &lt;/SPAN&gt;&lt;SPAN class="hljs-attr"&gt;viewpoint&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; Viewpoint() });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Mar 2021 21:23:18 GMT</pubDate>
    <dc:creator>AnthonyTimpson1</dc:creator>
    <dc:date>2021-03-09T21:23:18Z</dc:date>
    <item>
      <title>Home widget / Default Extent when querying by URL params</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/home-widget-default-extent-when-querying-by-url/m-p/1028106#M71810</link>
      <description>&lt;P&gt;I have a map that queries data based on URL parameters and zooms to the extent of the features (queryExtent). I'd like to add the home widget so that when users zoom in to specific points, they can click on the button to return to the initial extent. Right now, when I click on the standard home widget, spins and spins.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var homeButton = new Home({
          view: view,
        });

        // adds the home widget to the top left corner of the MapView
        view.ui.add(homeButton, "top-left");&lt;/LI-CODE&gt;&lt;P&gt;I gather I need to somehow connect the home widget to the query but I am not quite sure how to go about it (if that is in fact what needs to occur).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 16:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/home-widget-default-extent-when-querying-by-url/m-p/1028106#M71810</guid>
      <dc:creator>luckachi</dc:creator>
      <dc:date>2021-02-18T16:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Home widget / Default Extent when querying by URL params</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/home-widget-default-extent-when-querying-by-url/m-p/1034702#M71988</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;looks like you need to define a viewpoint for the home button to return to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can likely use the extent it initially zooms to with queryExtent to define a viewpoint.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; homeButton = &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; Home({ &lt;/SPAN&gt;&lt;SPAN class="hljs-attr"&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;: view, &lt;/SPAN&gt;&lt;SPAN class="hljs-attr"&gt;viewpoint&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; Viewpoint() });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 21:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/home-widget-default-extent-when-querying-by-url/m-p/1034702#M71988</guid>
      <dc:creator>AnthonyTimpson1</dc:creator>
      <dc:date>2021-03-09T21:23:18Z</dc:date>
    </item>
  </channel>
</rss>

