<?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: Zooming a camera in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296378#M11892</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/592150"&gt;@ZachRuiz&lt;/a&gt;&amp;nbsp;Thank you for reaching out to us with your question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to achieve what you're trying to do using&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Camera.ZoomToward.html" target="_blank"&gt;https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Camera.ZoomToward.html.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. If not, please let us know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Koushik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 17:56:46 GMT</pubDate>
    <dc:creator>KoushikHajra</dc:creator>
    <dc:date>2023-06-06T17:56:46Z</dc:date>
    <item>
      <title>Zooming a camera</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1295994#M11890</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone try and point me in the right direction in zooming a camera object? I am simulating a security camera coverage and have my pitch and zoom controls worked out but increasing the zoom as I would on an actual camera is proving to be difficult. I'm sure its easy and I am just missing it in the docs somewhere.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 20:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1295994#M11890</guid>
      <dc:creator>ZachRuiz</dc:creator>
      <dc:date>2023-06-05T20:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming a camera</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296378#M11892</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/592150"&gt;@ZachRuiz&lt;/a&gt;&amp;nbsp;Thank you for reaching out to us with your question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to achieve what you're trying to do using&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Camera.ZoomToward.html" target="_blank"&gt;https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Camera.ZoomToward.html.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. If not, please let us know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Koushik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 17:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296378#M11892</guid>
      <dc:creator>KoushikHajra</dc:creator>
      <dc:date>2023-06-06T17:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming a camera</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296400#M11894</link>
      <description>&lt;P&gt;Thanks, how can be done though when the TargetPoint is not known? The idea is simulating a camera on a fixed point that can pitch, yaw and zoom freely without a there being a specified target Point&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 18:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296400#M11894</guid>
      <dc:creator>ZachRuiz</dc:creator>
      <dc:date>2023-06-06T18:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming a camera</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296403#M11895</link>
      <description>&lt;P&gt;You can use the center of the screen as the targetPoint by calling locationToScreen with the sceneView width/2 and height/2.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 18:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296403#M11895</guid>
      <dc:creator>KoushikHajra</dc:creator>
      <dc:date>2023-06-06T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming a camera</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296825#M11898</link>
      <description>&lt;P&gt;When you say zooming, do you really mean "move forward" ?&lt;BR /&gt;Traditional zooming can be done by setting the field of view on the SceneView, which matches what a zoom-lens would do (ie not moving forward, but merely reducing the FoV):&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.SceneView.FieldOfView.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.SceneView.FieldOfView.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Otherwise if you want to manipulate the location of the camera, grab the Camera property on the SceneView to get the current Camera, and then use all the properties (like MoveForward) to modify the camera. See the full list here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Camera.html#methods" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Camera.html#methods&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Once you got the new camera you need, you can use SetViewpointCamera/SetViewpointCameraAsync to apply the new camera:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.SceneView.SetViewpointCameraAsync.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.SceneView.SetViewpointCameraAsync.html&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you want to stay fixed on a specific location or geoelement, also take a look at the various orbit camera controllers:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.CameraController.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.CameraController.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.OrbitGeoElementCameraController.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.OrbitGeoElementCameraController.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.OrbitLocationCameraController.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.UI.OrbitLocationCameraController.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.SceneView.CameraController.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.SceneView.CameraController.html&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a more advanced example, here's a way to control the camera using a game controller:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-demos/blob/main/src/KmlViewer/XInputHelper/XInputSceneController.cs" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-maps-sdk-dotnet-demos/blob/main/src/KmlViewer/XInputHelper/XInputSceneController.cs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 18:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/zooming-a-camera/m-p/1296825#M11898</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-06-07T18:42:32Z</dc:date>
    </item>
  </channel>
</rss>

