<?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: How to calculate SceneView's Extent in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-sceneview-s-extent/m-p/1420284#M84524</link>
    <description>&lt;P&gt;Because of rotation and tilt, an extent can never correctly cover the camera's visible area in 3D. We currently offer two possibilities&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#extent" target="_self"&gt;SceneView.extent&lt;/A&gt;: I assume you are already using that.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-GroundView.html#extent" target="_self"&gt;GroundView.extent&lt;/A&gt;: similar to the above, but specifically tailored to the ground elevation, making it more precise for some situations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It might help to know that we are currently working on a property with the visual area. Because this will be provided as a polygon, it will take tilt and rotation into account. This is planned to land this year, potentially in the upcoming 4.30 release.&lt;/P&gt;&lt;P&gt;In the meantime you could increase the size of the extent returned by SceneView using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#expand" target="_self"&gt;Extent.expand&lt;/A&gt;. Computing the extent or visible area yourself is rather complex and I cannot point you to any recourses. Our own implementation takes various factors into account, such as the elevation or visible geometries in the view.&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 08:10:07 GMT</pubDate>
    <dc:creator>ArnoFiva</dc:creator>
    <dc:date>2024-05-08T08:10:07Z</dc:date>
    <item>
      <title>How to calculate SceneView's Extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-sceneview-s-extent/m-p/1417932#M84479</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;I want to calculate the extent / visible area (&lt;STRONG&gt;xmin, ymin, xmax, ymax&lt;/STRONG&gt;) in a scene view / sphere / web mercator projection wkid 102100 with the ArcGis Javascript API. Given camera position of latitude 51 and longitude 4, z position of 4000m (meters). Given a tilt of 40, a heading of 300 and a field of view of 55. How to calculate the extent in 3D view based on these parameters?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;When switching from 2D to 3D. I get&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michaelkdev_0-1714632896129.png" style="width: 352px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102780i48277C684609C0ED/image-dimensions/352x162?v=v2" width="352" height="162" role="button" title="michaelkdev_0-1714632896129.png" alt="michaelkdev_0-1714632896129.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use the extent to fetch data from an API. (So we're expecting a correct extent in 3D). Maybe we can use a library or something?&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gr&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 May 2024 06:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-sceneview-s-extent/m-p/1417932#M84479</guid>
      <dc:creator>michaelpoa</dc:creator>
      <dc:date>2024-05-02T06:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate SceneView's Extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-sceneview-s-extent/m-p/1420284#M84524</link>
      <description>&lt;P&gt;Because of rotation and tilt, an extent can never correctly cover the camera's visible area in 3D. We currently offer two possibilities&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#extent" target="_self"&gt;SceneView.extent&lt;/A&gt;: I assume you are already using that.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-GroundView.html#extent" target="_self"&gt;GroundView.extent&lt;/A&gt;: similar to the above, but specifically tailored to the ground elevation, making it more precise for some situations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It might help to know that we are currently working on a property with the visual area. Because this will be provided as a polygon, it will take tilt and rotation into account. This is planned to land this year, potentially in the upcoming 4.30 release.&lt;/P&gt;&lt;P&gt;In the meantime you could increase the size of the extent returned by SceneView using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#expand" target="_self"&gt;Extent.expand&lt;/A&gt;. Computing the extent or visible area yourself is rather complex and I cannot point you to any recourses. Our own implementation takes various factors into account, such as the elevation or visible geometries in the view.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 08:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-calculate-sceneview-s-extent/m-p/1420284#M84524</guid>
      <dc:creator>ArnoFiva</dc:creator>
      <dc:date>2024-05-08T08:10:07Z</dc:date>
    </item>
  </channel>
</rss>

