<?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: Zoom to By rectangle in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265948#M80498</link>
    <description>&lt;P&gt;Is there any other way to click e.g. on button and after draw rectangle and zoom?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 13:10:29 GMT</pubDate>
    <dc:creator>Vakhtang_Zubiashvili</dc:creator>
    <dc:date>2023-03-09T13:10:29Z</dc:date>
    <item>
      <title>Zoom to By rectangle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1264832#M80470</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any working code to draw rectangle and zoom to place? Or i gave to start working on it now?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&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, 07 Mar 2023 06:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1264832#M80470</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2023-03-07T06:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to By rectangle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1264902#M80473</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107000"&gt;@Vakhtang_Zubiashvili&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I may be misinterpreting your question, but if you hold down the shift key, then click down and hold the button on your mouse, you should be able to draw a rectangle and when you release the button you will be zoomed to that extent.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 13:25:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1264902#M80473</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-03-07T13:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to By rectangle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265877#M80494</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;Thanks a lot, i missed this part in documentation&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 06:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265877#M80494</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2023-03-09T06:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to By rectangle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265948#M80498</link>
      <description>&lt;P&gt;Is there any other way to click e.g. on button and after draw rectangle and zoom?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 13:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265948#M80498</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2023-03-09T13:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to By rectangle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265949#M80499</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is there any other way to click e.g. on button and after draw rectangle and zoom?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 13:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265949#M80499</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2023-03-09T13:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to By rectangle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265982#M80501</link>
      <description>&lt;P&gt;Sure, at a really high level all you need to do is create a new rectangle graphic and then zoom to it with the view.goTo() method.&amp;nbsp; I created a codepen ( &lt;A href="https://codepen.io/sagewall/pen/dyqZVwd" target="_blank"&gt;https://codepen.io/sagewall/pen/dyqZVwd&lt;/A&gt;&amp;nbsp;) that shows one approach of doing this with the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html" target="_self"&gt;sketch&lt;/A&gt; widget.&amp;nbsp; It would be a bit more work, but you could create your own button and use the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html" target="_self"&gt;SketchViewModel&lt;/A&gt; to draw the rectangle. Creating your own button would give you more control over the styling of your button.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 14:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1265982#M80501</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-03-09T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to By rectangle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1266370#M80508</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;, now i will make some changes for myself &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 10:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-by-rectangle/m-p/1266370#M80508</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2023-03-10T10:43:39Z</dc:date>
    </item>
  </channel>
</rss>

