<?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: SetViewpointRotationAsync animates slow in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1031265#M9838</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221650"&gt;@MateuszZugaj&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I tried this solution which is working fine on iOS but on android it is causing app crash. I have tried below code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Device.BeginInvokeOnMainThread(async () =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;var currentViewpoint = SBUMapView.GetCurrentViewpoint(ViewpointType.CenterAndScale);&lt;/P&gt;&lt;P&gt;var newViewpoint = new Viewpoint(currentViewpoint.TargetGeometry as MapPoint, currentViewpoint.TargetScale, 0);&lt;/P&gt;&lt;P&gt;await SBUMapView.SetViewpointAsync(newViewpoint, TimeSpan.FromSeconds(5));&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;SBUMapView.LocationDisplay.AutoPanMode = LocationDisplayAutoPanMode.Off;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Feb 2021 05:10:38 GMT</pubDate>
    <dc:creator>PrajaktaShinde</dc:creator>
    <dc:date>2021-02-27T05:10:38Z</dc:date>
    <item>
      <title>SetViewpointRotationAsync animates slow</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1030325#M9822</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using below code to rotate the arcgis map to north-up mode. Where SBUMapView is my arcgis map. This takes longer time to rotate the map to north side. Please help how we can rotate the map within few seconds.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SBUMapView.SetViewpointRotationAsync(0);&lt;BR /&gt;SBUMapView.LocationDisplay.AutoPanMode = LocationDisplayAutoPanMode.Off;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 05:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1030325#M9822</guid>
      <dc:creator>PrajaktaShinde</dc:creator>
      <dc:date>2021-02-25T05:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: SetViewpointRotationAsync animates slow</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1031242#M9837</link>
      <description>&lt;P&gt;The general method &lt;FONT face="courier new,courier"&gt;SetViewpointAsync(Viewpoint,Timespan)&lt;/FONT&gt; has an additional argument for time of the animation. To change only the rotation, you need to save your current Viewpoint, change it's rotation to 0, and set to it.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var currentViewpoint = GetCurrentViewpoint(ViewpointType.CenterAndScale);

var newViewpoint = new Viewpoint(currentViewpoint.TargetGeometry as MapPoint, currentViewpoint.TargetScale, 0);

await MyMapView.SetViewpointAsync(newViewpoint, TimeSpan.FromSeconds(sec));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; where &lt;FONT face="courier new,courier"&gt;sec&lt;/FONT&gt; is the number of seconds.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 01:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1031242#M9837</guid>
      <dc:creator>MateuszZugaj</dc:creator>
      <dc:date>2021-02-27T01:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: SetViewpointRotationAsync animates slow</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1031265#M9838</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221650"&gt;@MateuszZugaj&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I tried this solution which is working fine on iOS but on android it is causing app crash. I have tried below code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Device.BeginInvokeOnMainThread(async () =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;var currentViewpoint = SBUMapView.GetCurrentViewpoint(ViewpointType.CenterAndScale);&lt;/P&gt;&lt;P&gt;var newViewpoint = new Viewpoint(currentViewpoint.TargetGeometry as MapPoint, currentViewpoint.TargetScale, 0);&lt;/P&gt;&lt;P&gt;await SBUMapView.SetViewpointAsync(newViewpoint, TimeSpan.FromSeconds(5));&lt;BR /&gt;&lt;BR /&gt;});&lt;BR /&gt;SBUMapView.LocationDisplay.AutoPanMode = LocationDisplayAutoPanMode.Off;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 05:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1031265#M9838</guid>
      <dc:creator>PrajaktaShinde</dc:creator>
      <dc:date>2021-02-27T05:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: SetViewpointRotationAsync animates slow</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1031282#M9839</link>
      <description>&lt;P&gt;I don't know why it would be dependent on platform. The weakest point of my solution would be the &lt;FONT face="courier new,courier"&gt;currentViewpoint.TargetGeometry as MapPoint&lt;/FONT&gt; part, but I thought that TargetGeometry is guaranteed to have the type MapPoint.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 12:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointrotationasync-animates-slow/m-p/1031282#M9839</guid>
      <dc:creator>MateuszZugaj</dc:creator>
      <dc:date>2021-02-27T12:25:29Z</dc:date>
    </item>
  </channel>
</rss>

