<?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: Zooming to Available features. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34876#M917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ohdev83&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear dominique, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you, the solution worked fine :).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2012 04:54:23 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-07-18T04:54:23Z</dc:date>
    <item>
      <title>Zooming to Available features.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34873#M914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ohdev83&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a combobox which i use to filter features depending on a field value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using the Where property of the Featurelayer to filter features, after that i call the Update method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now i want to zoom/set the view to the available results of the where property, any way to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.Where = where;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map.Extent = layer.FullExtent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.Update();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it works sometimes but after the next filtering operation and it zooms on the previous filtering extent, not on the current.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help about this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Silverlight 5, c#, featurelayer, zoom to extent, where clause, arcgis Server 10&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 09:01:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34873#M914</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-17T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming to Available features.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34874#M915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dbroux&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tried the following:&lt;BR /&gt;layer.Where = where;&lt;BR /&gt;Map.Extent = layer.FullExtent;&lt;BR /&gt;layer.Update();&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You set the Map.Extent too early.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The FullExtent of the layer is updated only after the layer itself has been updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it should work by setting the Map.Extent in an Layer.UpdateCompleted handler.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 10:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34874#M915</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-17T10:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming to Available features.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34875#M916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ohdev83&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You set the Map.Extent too early.&lt;BR /&gt;The FullExtent of the layer is updated only after the layer itself has been updated.&lt;BR /&gt;&lt;BR /&gt;So it should work by setting the Map.Extent in an Layer.UpdateCompleted handler.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks dominique!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i will try this tomorrow and let you know of the result, but even before trying, im almost sure it will work!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 20:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34875#M916</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-17T20:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Zooming to Available features.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34876#M917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ohdev83&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear dominique, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you, the solution worked fine :).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 04:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/zooming-to-available-features/m-p/34876#M917</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-18T04:54:23Z</dc:date>
    </item>
  </channel>
</rss>

