<?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: Map zooming to proper level in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-zooming-to-proper-level/m-p/288447#M7468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could not reproduce this issue. I wonder if maybe Map.SpatialReference has not yet been set when you call Map.ZoomTo()?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2012 18:24:12 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2012-05-22T18:24:12Z</dc:date>
    <item>
      <title>Map zooming to proper level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-zooming-to-proper-level/m-p/288446#M7467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing a query against an ESRI service and am getting back a feature set with a number of features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to zoom on my map so that all of these features. To do this, I used the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
map.ZoomTo(new Envelope(featureSet.Features.Min(x =&amp;gt; x.Geometry.Extent.XMin), featureSet.Features.Min(x =&amp;gt; x.Geometry.Extent.YMin),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet.Features.Max(x =&amp;gt; x.Geometry.Extent.XMax), featureSet.Features.Max(x =&amp;gt; x.Geometry.Extent.YMax)));
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In some cases some of the map that should be shown whenever a zoom happens is not on the screen. I usually have to roll my mouse wheel back a level to see the rest of the map that should be shown. I am guessing that because my map didn't have a scale level to that particular zoom, it rounded down and zoomed in a little farther than it should have. Is there some way I can do a check of some sort to insure that all my features are shown on the map when I zoom?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 11:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-zooming-to-proper-level/m-p/288446#M7467</guid>
      <dc:creator>JustinDyer</dc:creator>
      <dc:date>2012-05-21T11:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Map zooming to proper level</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-zooming-to-proper-level/m-p/288447#M7468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could not reproduce this issue. I wonder if maybe Map.SpatialReference has not yet been set when you call Map.ZoomTo()?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 18:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-zooming-to-proper-level/m-p/288447#M7468</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-05-22T18:24:12Z</dc:date>
    </item>
  </channel>
</rss>

