<?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: Zoom and Pan in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-and-pan/m-p/377182#M9740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in v2.2beta, you can use the MapAutomationPeer class to accomplish this by calling it in an animation loop (albeit it will require some fair amount of math to get just the way you want it :-))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2011 01:41:58 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2011-05-04T01:41:58Z</dc:date>
    <item>
      <title>Zoom and Pan</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-and-pan/m-p/377180#M9738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way that I can zoom and pan at the same time, or one after the other....I am using the below code to zoom to a features extent...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I am looking to also shift the zoomed extent to the left or right....Can I pan by specifying a distance value in a particular direction?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' TAKE THE NEW UNION EXTENT AND ZOOM OUT A TAD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ZoomTographicslayer2 As ESRI.ArcGIS.Client.Geometry.Envelope = NewExtent
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim expandPercentage2 As Double = 5
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim widthExpand2 As Double = ZoomTographicslayer2.Width * (expandPercentage2 / 8)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim heightExpand2 As Double = ZoomTographicslayer2.Height * (expandPercentage2 / 8)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim displayExtentParcelLocation2 As New ESRI.ArcGIS.Client.Geometry.Envelope(ZoomTographicslayer2.XMin - (widthExpand2 / 2), ZoomTographicslayer2.YMin - (heightExpand2 / 2), ZoomTographicslayer2.XMax + (widthExpand2 / 2), ZoomTographicslayer2.YMax + (heightExpand2 / 2))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyMap.ZoomTo(displayExtentParcelLocation2&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 13:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-and-pan/m-p/377180#M9738</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-04-29T13:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom and Pan</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-and-pan/m-p/377181#M9739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These are related threads:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/22285-multiple-calls-to-Map.ZoomTo%28Envelope%29-doesn-t-always-seem-to-work"&gt;http://forums.arcgis.com/threads/22285-multiple-calls-to-Map.ZoomTo%28Envelope%29-doesn-t-always-seem-to-work&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/25701-calling-Map.ZoomTo%28%29-and-then-Map.PanTo%28%29-can-cause-IE-to-hang-100-CPU"&gt;http://forums.arcgis.com/threads/25701-calling-Map.ZoomTo%28%29-and-then-Map.PanTo%28%29-can-cause-IE-to-hang-100-CPU&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bug fixes are targeted for v2.2. If you make consecutive calls to ZoomTo() or PanTo(), the next call cancels the first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If what you are trying to do is zoom to a geometry first and then pan, you need to wait for zoom to complete (Map.ExtentChanged will be fired), then you can call pan. Otherwise, the pan will cancel the zoom.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 20:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-and-pan/m-p/377181#M9739</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-04-29T20:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom and Pan</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-and-pan/m-p/377182#M9740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in v2.2beta, you can use the MapAutomationPeer class to accomplish this by calling it in an animation loop (albeit it will require some fair amount of math to get just the way you want it :-))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 01:41:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zoom-and-pan/m-p/377182#M9740</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-05-04T01:41:58Z</dc:date>
    </item>
  </channel>
</rss>

