<?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 Query not respecting layer's definition expression (4.X) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-not-respecting-layer-s-definition-expression/m-p/712174#M66205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Decided to post as a question as I'm not sure if it is a bug or something I'm missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using subLayer.queryFeatures to return geometries of a MapImageLayer and then adding them to the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, although I change the layer's definition expression prior to the query, it still returns features that aren't being displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the expected behavior? Can I easily workaround this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 20:16:22 GMT</pubDate>
    <dc:creator>SamuelAbati</dc:creator>
    <dc:date>2017-05-24T20:16:22Z</dc:date>
    <item>
      <title>Query not respecting layer's definition expression (4.X)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-not-respecting-layer-s-definition-expression/m-p/712174#M66205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Decided to post as a question as I'm not sure if it is a bug or something I'm missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using subLayer.queryFeatures to return geometries of a MapImageLayer and then adding them to the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, although I change the layer's definition expression prior to the query, it still returns features that aren't being displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the expected behavior? Can I easily workaround this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 20:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-not-respecting-layer-s-definition-expression/m-p/712174#M66205</guid>
      <dc:creator>SamuelAbati</dc:creator>
      <dc:date>2017-05-24T20:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query not respecting layer's definition expression (4.X)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-not-respecting-layer-s-definition-expression/m-p/712175#M66206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You will likely have to add the sublayers &lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;definitionExpression&lt;/SPAN&gt; to your queries where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 20:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-not-respecting-layer-s-definition-expression/m-p/712175#M66206</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-05-24T20:29:17Z</dc:date>
    </item>
  </channel>
</rss>

