<?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 Dynamically limiting the extent of an ArcGISDynamicMapServerLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamically-limiting-the-extent-of-an/m-p/543501#M50604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a few ArcGISDynamicMapServerLayers that are querying several hundred thousand lines. &amp;nbsp;We can dynamically limit the results that the layer is querying by using the layerDefinitions, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerDynamic = new ArcGISDynamicMapServiceLayer(myUrl);&lt;/P&gt;&lt;P&gt;var layerDefinitions = [];&lt;/P&gt;&lt;P&gt;layerDefinitions[0] = "City = 'MyCity'";&lt;/P&gt;&lt;P&gt;layerDynamic.setLayerDefinitions(layerDefinitions);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works great and really improves performance. &amp;nbsp;However, if I want to limit the layer by a given Extent, can I do that? &amp;nbsp;For example, if a user zooms to a particular county, then I want to limit the ArcGISDynamicMapServiceLayer by that county's polygon shape extent. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2017 19:52:24 GMT</pubDate>
    <dc:creator>SteveBurdette1</dc:creator>
    <dc:date>2017-04-13T19:52:24Z</dc:date>
    <item>
      <title>Dynamically limiting the extent of an ArcGISDynamicMapServerLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamically-limiting-the-extent-of-an/m-p/543501#M50604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a few ArcGISDynamicMapServerLayers that are querying several hundred thousand lines. &amp;nbsp;We can dynamically limit the results that the layer is querying by using the layerDefinitions, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerDynamic = new ArcGISDynamicMapServiceLayer(myUrl);&lt;/P&gt;&lt;P&gt;var layerDefinitions = [];&lt;/P&gt;&lt;P&gt;layerDefinitions[0] = "City = 'MyCity'";&lt;/P&gt;&lt;P&gt;layerDynamic.setLayerDefinitions(layerDefinitions);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works great and really improves performance. &amp;nbsp;However, if I want to limit the layer by a given Extent, can I do that? &amp;nbsp;For example, if a user zooms to a particular county, then I want to limit the ArcGISDynamicMapServiceLayer by that county's polygon shape extent. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 19:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamically-limiting-the-extent-of-an/m-p/543501#M50604</guid>
      <dc:creator>SteveBurdette1</dc:creator>
      <dc:date>2017-04-13T19:52:24Z</dc:date>
    </item>
  </channel>
</rss>

