<?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 mapView.SetViewpoint looping for 5 to 25 minutes before setting in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-setviewpoint-looping-for-5-to-25-minutes/m-p/1602331#M13443</link>
    <description>&lt;P&gt;I'm using mapView.SetViewpoint in a loop:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;mapView.SetViewpoint(viewpoint);
while (mapView.DrawStatus == DrawStatus.InProgress &amp;amp;&amp;amp; !mapView.IsNavigating)
{
    var loaded = mapView.Dispatcher.Invoke(() =&amp;gt; mapView.IsLoaded);
    if (!loaded)
    {
        break;
    }

    mapView.SetViewpoint(viewpoint);
    await Task.Delay(200).ConfigureAwait(false);
}&lt;/LI-CODE&gt;&lt;P&gt;In some scenarios it set viewpoint after 2-3 times, but in some other scenarios it needs 5 to 25 minutes of looping.&lt;BR /&gt;I noticed that when this code is called on "Albers" map projection it needs time. The map projection where is working fine is "Mercator". &lt;SPAN&gt;Do you perhaps know why it is taking so long and how it can be handled? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2025 14:06:06 GMT</pubDate>
    <dc:creator>AleksaSavic</dc:creator>
    <dc:date>2025-04-03T14:06:06Z</dc:date>
    <item>
      <title>mapView.SetViewpoint looping for 5 to 25 minutes before setting</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-setviewpoint-looping-for-5-to-25-minutes/m-p/1602331#M13443</link>
      <description>&lt;P&gt;I'm using mapView.SetViewpoint in a loop:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;mapView.SetViewpoint(viewpoint);
while (mapView.DrawStatus == DrawStatus.InProgress &amp;amp;&amp;amp; !mapView.IsNavigating)
{
    var loaded = mapView.Dispatcher.Invoke(() =&amp;gt; mapView.IsLoaded);
    if (!loaded)
    {
        break;
    }

    mapView.SetViewpoint(viewpoint);
    await Task.Delay(200).ConfigureAwait(false);
}&lt;/LI-CODE&gt;&lt;P&gt;In some scenarios it set viewpoint after 2-3 times, but in some other scenarios it needs 5 to 25 minutes of looping.&lt;BR /&gt;I noticed that when this code is called on "Albers" map projection it needs time. The map projection where is working fine is "Mercator". &lt;SPAN&gt;Do you perhaps know why it is taking so long and how it can be handled? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 14:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-setviewpoint-looping-for-5-to-25-minutes/m-p/1602331#M13443</guid>
      <dc:creator>AleksaSavic</dc:creator>
      <dc:date>2025-04-03T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: mapView.SetViewpoint looping for 5 to 25 minutes before setting</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-setviewpoint-looping-for-5-to-25-minutes/m-p/1602405#M13445</link>
      <description>&lt;P&gt;What's the purpose of this code? I don't really see why you need to set the viewpoint over and over again? With a little more understanding of the scenario you're trying to solve, I might be able to advice a cleaner way to do it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 16:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-setviewpoint-looping-for-5-to-25-minutes/m-p/1602405#M13445</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-04-03T16:55:13Z</dc:date>
    </item>
  </channel>
</rss>

