<?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: replacements of Envelope.Expand and Map.CenterAt() in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173566#M4302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;BTW, if I draw a rectangle, not a point, I can just do myMap.ZoomTo(geometry), this will zoom to the area drawn.&amp;nbsp; However, if the geometry is a MapPoint, it doesn't work as I want.&amp;nbsp; I also try to create a rectangle using the point but I don't know what numbers I can come up with that do the right zoom.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 12:18:30 GMT</pubDate>
    <dc:creator>ThaoNguyen</dc:creator>
    <dc:date>2010-06-18T12:18:30Z</dc:date>
    <item>
      <title>replacements of Envelope.Expand and Map.CenterAt()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173563#M4299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before, we use ESRI.ArcGIS.MapControl.AxMapControl for the map object, now we switch to esri wpf which uses esri.arcgis.client.Map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before, to zoom in, we do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;AxMapControl instance&amp;gt;.CenterAt(mapPoint)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.esriSystem.IClone clone = axMapControl.Extent as ESRI.ArcGIS.esriSystem.IClone;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IEnvelope envelope = clone.Clone() as IEnvelope;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;envelope.Expand(0.50, 0.50, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To zoom out: envelope.Expand(1.25,1.25,true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In wpf api, I cannot find the Expand() or CenterAt() for Map.&amp;nbsp; Please advise what I can use in replacements of these methods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 16:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173563#M4299</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-06-17T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: replacements of Envelope.Expand and Map.CenterAt()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173564#M4300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;map.ZoomTo(geometry);&amp;nbsp; //zooms to the extent of the provided geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.Zoom(2.0); //zoom in 2 times the scale&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.Zoom(.5); //zoom out 2 times the scale&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CenterAt:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.PanTo(geometry); //centers at the center of the provided geometry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 23:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173564#M4300</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-17T23:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: replacements of Envelope.Expand and Map.CenterAt()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173565#M4301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;map.ZoomTo(geometry);&amp;nbsp; //zooms to the extent of the provided geometry&lt;BR /&gt;map.Zoom(2.0); //zoom in 2 times the scale&lt;BR /&gt;map.Zoom(.5); //zoom out 2 times the scale&lt;BR /&gt; &lt;BR /&gt;CenterAt:&lt;BR /&gt;map.PanTo(geometry); //centers at the center of the provided geometry&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried map.Panto(mapPoint) but it didn't seem to work for me because sometimes the point where I clicked was not in the view.&amp;nbsp; I did the following, and everytime I zoomed in, the center of the map was zoomed, not where my clicked point was zoomed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.PanTo(mapPoint);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.Zoom(2);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 11:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173565#M4301</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-06-18T11:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: replacements of Envelope.Expand and Map.CenterAt()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173566#M4302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;BTW, if I draw a rectangle, not a point, I can just do myMap.ZoomTo(geometry), this will zoom to the area drawn.&amp;nbsp; However, if the geometry is a MapPoint, it doesn't work as I want.&amp;nbsp; I also try to create a rectangle using the point but I don't know what numbers I can come up with that do the right zoom.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 12:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173566#M4302</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-06-18T12:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: replacements of Envelope.Expand and Map.CenterAt()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173567#M4303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot zoom to a point, because it doesn't have a valid extent to zoom to. The reason is basically the same as the problem you are facing: The map can't know how far in you meant to zoom around that point. It really depends on the type of data (ie you want to zoom further in if the point represents an address, but not as far if its a city).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to zoom around a certain point, use myMap.ZoomToResolution(myMap.Resolution/2, pointToZoomAround);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also you cannot call PanTo right after calling ZoomTo or vice versa. Calling one of these commands will stop any other active navigation (like the previous one you just called).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2010 00:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/replacements-of-envelope-expand-and-map-centerat/m-p/173567#M4303</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-19T00:34:20Z</dc:date>
    </item>
  </channel>
</rss>

