<?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: [Bug] Scale not updated when zooming to an object outside of the visible extent in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546300#M2775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 08:52:03 GMT</pubDate>
    <dc:creator>BjørnarSundsbø</dc:creator>
    <dc:date>2014-09-12T08:52:03Z</dc:date>
    <item>
      <title>[Bug] Scale not updated when zooming to an object outside of the visible extent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546297#M2772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have discovered a minor bug where the Scale property does not update (PropertyChanged) when using the ZoomTo(Geometry) method. The object I am zooming to must be outside the visible extent for this to occur. I am using Runtime SDK 10.2.2. The scale only recovers after zooming in or out. Panning does not update the Scale property&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some code to reproduce. The map itself is not included. For the logic to work, the map must be in UTM (or some other reference system that represents a coordinate in meters). Or the logic around the extent to zoom to must be changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;Button DockPanel.Dock="Left" Padding="8" Content="Zoom to" Click="Button_Click"/&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;TextBlock HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="20" Text="{Binding Path=Scale, StringFormat='{}{0:n}', ElementName=PART_Map}" FontSize="16" /&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private void Button_Click(object sender, RoutedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var random = new Random();
&amp;nbsp;&amp;nbsp;&amp;nbsp; Point point = new Point(random.Next(0, (int) PART_Map.ActualWidth), random.Next(0, (int) PART_Map.ActualHeight));
&amp;nbsp;&amp;nbsp;&amp;nbsp; point.X -= 10000;
&amp;nbsp;&amp;nbsp;&amp;nbsp; point.Y -= 10000;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapPoint = PART_Map.ScreenToMap(point);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var extent = new Envelope(mapPoint, new MapPoint { X = mapPoint.X + 1000, Y = mapPoint.Y + 1000});
&amp;nbsp;&amp;nbsp;&amp;nbsp; PART_Map.ZoomTo(extent);
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Zoom the map all the way in, and click the button. This should calculate a random envelope a bit outside of the visible extent. The scale does not update. Zoom either in or out and see the scale does not reflect the actual scale. Zooming to a point inside the visible extent does update the scale&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a side note, is there somewhere else I should post any bugs I find, rather than the forums?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 11:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546297#M2772</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2014-05-07T11:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] Scale not updated when zooming to an object outside of the visible extent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546298#M2773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this something that might be fixed in the next release?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 06:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546298#M2773</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2014-09-12T06:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] Scale not updated when zooming to an object outside of the visible extent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546299#M2774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for reporting this. I will enter an issue for further investigation and we will review whether it is possible to address this in the next release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 08:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546299#M2774</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2014-09-12T08:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] Scale not updated when zooming to an object outside of the visible extent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546300#M2775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 08:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-scale-not-updated-when-zooming-to-an-object/m-p/546300#M2775</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2014-09-12T08:52:03Z</dc:date>
    </item>
  </channel>
</rss>

