<?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: Failing to set MapView.extent exactly... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failing-to-set-mapview-extent-exactly/m-p/1225530#M79127</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/370724"&gt;@TonyGraham&lt;/a&gt;&amp;nbsp;- By default the MapView will snap to the LODs. You can turn that off, and it should zoom to the exact extent you set.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;constraints: {
  snapToZoom: false
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 05:48:59 GMT</pubDate>
    <dc:creator>BjornSvensson</dc:creator>
    <dc:date>2022-10-26T05:48:59Z</dc:date>
    <item>
      <title>Failing to set MapView.extent exactly...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failing-to-set-mapview-extent-exactly/m-p/1225449#M79125</link>
      <description>&lt;P&gt;I'm trying to dynamically update the extent of a 500px x 400px map such that the view contains all of Corsica and Sardinia (an artificial example).&amp;nbsp; (See codepen&amp;nbsp;&lt;A href="https://codepen.io/tonygraham/pen/eYKYLqX" target="_blank"&gt;https://codepen.io/tonygraham/pen/eYKYLqX&lt;/A&gt;).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the resulting view clips the region that I expected to see, and neither Corsica nor Sardinia "fits".&lt;/P&gt;&lt;P&gt;Am I missing some subtlety with scale or zoom?&amp;nbsp; Should I be setting those as well?&lt;/P&gt;&lt;P&gt;My real use case is that I have some projected data already graphed that I want to display above the map at an exact extent, but I think I'm lacking the control I need over the extent to do it.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failing-to-set-mapview-extent-exactly/m-p/1225449#M79125</guid>
      <dc:creator>TonyGraham</dc:creator>
      <dc:date>2022-10-25T21:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Failing to set MapView.extent exactly...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failing-to-set-mapview-extent-exactly/m-p/1225530#M79127</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/370724"&gt;@TonyGraham&lt;/a&gt;&amp;nbsp;- By default the MapView will snap to the LODs. You can turn that off, and it should zoom to the exact extent you set.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;constraints: {
  snapToZoom: false
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 05:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failing-to-set-mapview-extent-exactly/m-p/1225530#M79127</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2022-10-26T05:48:59Z</dc:date>
    </item>
  </channel>
</rss>

