<?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 How to get extent of map service filtered with a layer definition? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-extent-of-map-service-filtered-with-a/m-p/109426#M10164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;JSAPI newbie here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a dynamic service with a raster catalog layer, a couple annotation layers, and a line layer. I need to display only one map page at a time so I set up a definition query (filter) with setLayerDefinitions. Next I need to zoom to the extent of the filtered raster, but the only options I can find for the extent are for the initial and full extents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I going to need to do some sort of additional query to select the raster to get its geometry and do a "zoom to selected" or is there some property of the layer definition I'm not seeing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Apr 2010 18:33:20 GMT</pubDate>
    <dc:creator>MarkJohnson</dc:creator>
    <dc:date>2010-04-19T18:33:20Z</dc:date>
    <item>
      <title>How to get extent of map service filtered with a layer definition?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-extent-of-map-service-filtered-with-a/m-p/109426#M10164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;JSAPI newbie here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a dynamic service with a raster catalog layer, a couple annotation layers, and a line layer. I need to display only one map page at a time so I set up a definition query (filter) with setLayerDefinitions. Next I need to zoom to the extent of the filtered raster, but the only options I can find for the extent are for the initial and full extents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I going to need to do some sort of additional query to select the raster to get its geometry and do a "zoom to selected" or is there some property of the layer definition I'm not seeing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 18:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-extent-of-map-service-filtered-with-a/m-p/109426#M10164</guid>
      <dc:creator>MarkJohnson</dc:creator>
      <dc:date>2010-04-19T18:33:20Z</dc:date>
    </item>
  </channel>
</rss>

