<?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 ArcGIS JS SceneView.goTo control camera rotation in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcgis-js-sceneview-goto-control-camera-rotation/m-p/1341382#M6805</link>
    <description>&lt;P&gt;I'm making a SceneView for my website. I have functionality where the globe cannot be controlled by the viewer, but moves from point of interest to&amp;nbsp;point of interest based how users hover over other elements in the site. This part works fine, except that the viewer is bouncing around between different points such that the rotation of the camera becomes very skewed, to the po&lt;A href="https://www.adhesivesmanufacturer.com/" target="_self"&gt;i&lt;/A&gt;nt where it's disorienting. Is there any way to lock the camera such that the top of the screen is always north, the bottom is always south, the right is always east, and the left is always west using options or other js magic? Thanks!&lt;/P&gt;&lt;P&gt;My Function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;   view.when(function () {
        // Access the DOM elements and attach event listeners
        var itemElements = document.getElementsByClassName('item');
        // Attach listener for each item
        for (var i = 0; i &amp;lt; itemElements.length; i++) {
          itemElements[i].addEventListener('mouseenter', function (event) {
            var lat = parseFloat(event.currentTarget.dataset.lat);
            var long = parseFloat(event.currentTarget.dataset.long);
            view
              .goTo(
                {
                  position: {
                    x: lat,
                    y: long,
                    spatialReference: {
                      wkid: 4326
                    }
                  }
                });
          });
        }
      });
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 13:19:42 GMT</pubDate>
    <dc:creator>SheikhImranJaffry</dc:creator>
    <dc:date>2023-11-06T13:19:42Z</dc:date>
    <item>
      <title>ArcGIS JS SceneView.goTo control camera rotation</title>
      <link>https://community.esri.com/t5/developers-questions/arcgis-js-sceneview-goto-control-camera-rotation/m-p/1341382#M6805</link>
      <description>&lt;P&gt;I'm making a SceneView for my website. I have functionality where the globe cannot be controlled by the viewer, but moves from point of interest to&amp;nbsp;point of interest based how users hover over other elements in the site. This part works fine, except that the viewer is bouncing around between different points such that the rotation of the camera becomes very skewed, to the po&lt;A href="https://www.adhesivesmanufacturer.com/" target="_self"&gt;i&lt;/A&gt;nt where it's disorienting. Is there any way to lock the camera such that the top of the screen is always north, the bottom is always south, the right is always east, and the left is always west using options or other js magic? Thanks!&lt;/P&gt;&lt;P&gt;My Function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;   view.when(function () {
        // Access the DOM elements and attach event listeners
        var itemElements = document.getElementsByClassName('item');
        // Attach listener for each item
        for (var i = 0; i &amp;lt; itemElements.length; i++) {
          itemElements[i].addEventListener('mouseenter', function (event) {
            var lat = parseFloat(event.currentTarget.dataset.lat);
            var long = parseFloat(event.currentTarget.dataset.long);
            view
              .goTo(
                {
                  position: {
                    x: lat,
                    y: long,
                    spatialReference: {
                      wkid: 4326
                    }
                  }
                });
          });
        }
      });
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcgis-js-sceneview-goto-control-camera-rotation/m-p/1341382#M6805</guid>
      <dc:creator>SheikhImranJaffry</dc:creator>
      <dc:date>2023-11-06T13:19:42Z</dc:date>
    </item>
  </channel>
</rss>

