<?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 in view.goto not working in EPSG:3826 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1366353#M83257</link>
    <description>&lt;P&gt;I'm not sure what is meant by an extent information error...you may need to give further information on that.&lt;/P&gt;&lt;P&gt;Note that the documentation explains why the zoom value can be -1 in the "&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#mapview-lods" target="_self"&gt;Zoom and LODs&lt;/A&gt;" section of the MapView documentation, and also in the discussion of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom" target="_self"&gt;zoom&lt;/A&gt; property.&amp;nbsp; Perhaps that might help you figure out what's going on as well.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 16:43:36 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2024-01-04T16:43:36Z</dc:date>
    <item>
      <title>Zoom in view.goto not working in EPSG:3826</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1365673#M83244</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I meet a problem when using view.goto in EPSG:3826;&amp;nbsp; in EPSG:3857, the view.goto can work well and&amp;nbsp;&lt;/P&gt;&lt;P&gt;zooming when it move to the new coordinate, but in EPSG:3826, after the screen doing the move action,&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the zoom action is no react, the value of view.zoom is become -1, the code snippet is as following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;var newCenterPoint = new Point({&lt;BR /&gt;&amp;nbsp; x: new_center_coordinates[0],&lt;BR /&gt;&amp;nbsp; y: new_center_coordinates[1],&lt;BR /&gt;&amp;nbsp; spatialReference: {&lt;BR /&gt;&amp;nbsp; wkid: 3826 // Specify the desired spatial reference WKID&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;});&lt;BR /&gt;esri_goto_option = {&lt;BR /&gt;&amp;nbsp; animate: true,&lt;BR /&gt;&amp;nbsp; duration: 1500,&lt;BR /&gt;&amp;nbsp; spatialReference: {&lt;BR /&gt;&amp;nbsp; wkid: 3826 // Specify the desired spatial reference WKID&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;};&lt;BR /&gt;view.goTo({&lt;BR /&gt;&amp;nbsp; target: newCenterPoint,&lt;BR /&gt;&amp;nbsp; zoom: 15&lt;BR /&gt;}, esri_goto_option)&lt;BR /&gt;.then(function() {&lt;BR /&gt;try {&lt;BR /&gt;&amp;nbsp; console.log("After goTo:", view.zoom);&lt;BR /&gt;} catch (error) {&lt;BR /&gt;&amp;nbsp; console.error("Error during goTo:", error);&lt;BR /&gt;}&lt;BR /&gt;})&lt;BR /&gt;.catch(function(error) {&lt;BR /&gt;&amp;nbsp; console.error("Error during goTo:", error);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is anyone know the problem and how to solve that, thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 06:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1365673#M83244</guid>
      <dc:creator>AbramhumHsu</dc:creator>
      <dc:date>2024-01-03T06:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom in view.goto not working in EPSG:3826</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1365854#M83250</link>
      <description>&lt;P&gt;Since you say goTo works with 3857, this indicates your &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#spatialReference" target="_self"&gt;view.spatialReference&lt;/A&gt; is 3857 (Web Mercator).&amp;nbsp; If that's the case, then using goTo with geometries in anything other than 3857 will not work.&amp;nbsp; Therefore, you will need to reproject your point from 3826 to 3857 first.&amp;nbsp; You can do that using the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#project" target="_self"&gt;project&lt;/A&gt; method of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html" target="_self"&gt;esri/geometry/projection&lt;/A&gt; module.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 16:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1365854#M83250</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2024-01-03T16:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom in view.goto not working in EPSG:3826</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1366101#M83252</link>
      <description>&lt;P&gt;Thanks for your reply. Through the way you provided, since the movement of view.goto is correct, only the&amp;nbsp;zoom operation is invalid, then I think this maybe come from the extent information error. Is that possible to set this info to the view.goTo. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 01:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1366101#M83252</guid>
      <dc:creator>AbramhumHsu</dc:creator>
      <dc:date>2024-01-04T01:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom in view.goto not working in EPSG:3826</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1366353#M83257</link>
      <description>&lt;P&gt;I'm not sure what is meant by an extent information error...you may need to give further information on that.&lt;/P&gt;&lt;P&gt;Note that the documentation explains why the zoom value can be -1 in the "&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#mapview-lods" target="_self"&gt;Zoom and LODs&lt;/A&gt;" section of the MapView documentation, and also in the discussion of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom" target="_self"&gt;zoom&lt;/A&gt; property.&amp;nbsp; Perhaps that might help you figure out what's going on as well.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 16:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-in-view-goto-not-working-in-epsg-3826/m-p/1366353#M83257</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2024-01-04T16:43:36Z</dc:date>
    </item>
  </channel>
</rss>

