<?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 LayerDef Extent in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerdef-extent/m-p/55915#M1428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a dynamic map service with three layers that I am applying a Layer Definition to in code behind based on user input.&amp;nbsp; After the data is filtered (which is working) I want to pan/zoom to the extent of the visible features.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using Map.ZoomTo(dmsLayer.FullExtent); takes to the extent of the dynamic map service, not the visible features, nor is there a updated handler for a dynamic map service to try and call after the layer def is completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be the best way to accomplish this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 15:40:46 GMT</pubDate>
    <dc:creator>KeithNightlinger</dc:creator>
    <dc:date>2010-10-06T15:40:46Z</dc:date>
    <item>
      <title>LayerDef Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerdef-extent/m-p/55915#M1428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a dynamic map service with three layers that I am applying a Layer Definition to in code behind based on user input.&amp;nbsp; After the data is filtered (which is working) I want to pan/zoom to the extent of the visible features.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using Map.ZoomTo(dmsLayer.FullExtent); takes to the extent of the dynamic map service, not the visible features, nor is there a updated handler for a dynamic map service to try and call after the layer def is completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be the best way to accomplish this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 15:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerdef-extent/m-p/55915#M1428</guid>
      <dc:creator>KeithNightlinger</dc:creator>
      <dc:date>2010-10-06T15:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: LayerDef Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerdef-extent/m-p/55916#M1429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;using Map.ZoomTo(dmsLayer.FullExtent); takes to the extent of the dynamic map service, not the visible features,&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no way with the REST API and so with the SL API to get a layer extent taking in care the layer definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;is there a updated handler for a dynamic map service to try and call after the layer def is completed&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, because the request with a layer def is stateless. It's only used for one exportmap operation. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What would be the best way to accomplish this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;A GP tool or a Server Object Extension (SOE) should be able to accomplish this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 06:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layerdef-extent/m-p/55916#M1429</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-10-07T06:44:55Z</dc:date>
    </item>
  </channel>
</rss>

