<?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: How to zoom-in a selected feature in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361748#M9334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can call the map's ZoomTo(Geometry geometry), where geometry is the geometry of the selected feature. If the geometry is a MapPoint, you can call the map's ZoomToResolution(double Resolution, MapPoint center) or create an extent with the MapPoint first before passing to map's&amp;nbsp; ZoomTo(Geometry geometry).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 13:23:14 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2010-10-18T13:23:14Z</dc:date>
    <item>
      <title>How to zoom-in a selected feature</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361747#M9333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Flex, I used the following piece of code to zoom-in a selected feature:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; map.centerAt(pt);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; extent = new Extent(pt.x - x_offset, pt.y - y_offset, pt.x + x_offset, pt.y + y_offset);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; map.extent = extent.expand(1.1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where the expand method is used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In SL, my code is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; envelope = getEnvelope(fs);&amp;nbsp; // that returns the envelope w/ XMin, YMIN, XMAX and YMAX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map.Extent = envelope.Extent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I could not find its expand method in the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you know how to do, please help.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 13:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361747#M9333</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2010-10-18T13:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom-in a selected feature</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361748#M9334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can call the map's ZoomTo(Geometry geometry), where geometry is the geometry of the selected feature. If the geometry is a MapPoint, you can call the map's ZoomToResolution(double Resolution, MapPoint center) or create an extent with the MapPoint first before passing to map's&amp;nbsp; ZoomTo(Geometry geometry).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 13:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361748#M9334</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-10-18T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom-in a selected feature - Solved</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361749#M9335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jenniffer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&amp;nbsp; Per your advice, I wrote the piece of code like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; fs.Features[0].Geometry.SpatialReference = _Map.SpatialReference;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; _Map.ZoomTo(fs.Features[0].Geometry);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then it works very well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 14:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361749#M9335</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2010-10-18T14:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to zoom-in a selected feature</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361750#M9336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Igore it.&amp;nbsp; Problem solved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 15:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-zoom-in-a-selected-feature/m-p/361750#M9336</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2010-10-18T15:59:02Z</dc:date>
    </item>
  </channel>
</rss>

