<?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: Identify Results Include features excluded by definition query in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/1376164#M83492</link>
    <description>&lt;P&gt;For anyone encountering this issue when identifying against a&amp;nbsp;&lt;FONT face="courier new,courier"&gt;MapImageLayer&lt;/FONT&gt; in Version 4.x of the ArcGIS Maps SDK for JavaScript, the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#sublayers" target="_self"&gt;&lt;FONT face="courier new,courier"&gt;sublayers&lt;/FONT&gt;&lt;/A&gt; property of &lt;FONT face="courier new,courier"&gt;IdentifyParameters&lt;/FONT&gt; needs to be specified, as explained here: &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/td-p/1210531" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/td-p/1210531&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 21:37:25 GMT</pubDate>
    <dc:creator>skykasko</dc:creator>
    <dc:date>2024-01-30T21:37:25Z</dc:date>
    <item>
      <title>Identify Results Include features excluded by definition query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223766#M20804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the ArcGISDynamicMapServiceLayer to load my layers into the map in ArcGIS API for JavaScript 3.19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up the IdentifyTask, and it works great except for one problem.&amp;nbsp; I allow the end-user to search on a date range which sets a definition query to only display those features.&amp;nbsp; However, the identify popup includes those features that are being excluded using the definition query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get an Identify&amp;nbsp;popup for only those features that are visible because of the definition query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:31:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223766#M20804</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2017-01-26T19:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Results Include features excluded by definition query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223767#M20805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lori,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you using the IdentifyParameters.layerDefinitions array? If not then you should be.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/identifyparameters-amd.html#layerdefinitions" title="https://developers.arcgis.com/javascript/3/jsapi/identifyparameters-amd.html#layerdefinitions"&gt;IdentifyParameters | API Reference | ArcGIS API for JavaScript 3.19 | layerDefinitions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 01:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223767#M20805</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-27T01:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Results Include features excluded by definition query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223768#M20806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good idea!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try setting the identify parameter layer definition,&lt;/P&gt;&lt;P&gt;identifyParams.layerDefinitions[3] = &lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"DateOn &amp;lt;= '"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + ondate + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"' AND DateOff &amp;gt;= '"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + offdate + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"'"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error&lt;/P&gt;&lt;P&gt;"0x800a138f - JavaScript runtime error: Unable to set property '3' of undefined or null reference"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I found on another post to try setting the layer definition like this:&lt;/P&gt;&lt;P&gt;identifyParams.layerDefinitions = &lt;SPAN style="font-family: Consolas; font-size: small;"&gt;{ &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"3"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"DateOn &amp;lt;= '"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + ondate + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"' AND DateOff &amp;gt;= '"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + offdate + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"'" &lt;/SPAN&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not get an error, but the identify layer definition is not getting set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223768#M20806</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2017-01-27T17:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Results Include features excluded by definition query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223769#M20807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lori,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var layerDefinitions = [];
layerDefinitions[3] = "DateOn &amp;lt;= '" + ondate + "' AND DateOff &amp;gt;= '" + offdate + "'";‍‍
identifyParams.layerDefinitions = layerDefinitions;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223769#M20807</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T10:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Results Include features excluded by definition query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223770#M20808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&amp;nbsp; It is similar to how I set up the regular definition query.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; layerDefinitions = [];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;layerDefinitions[0] = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"bridge_symbol = 'weight restr'"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;allTravelImpactsLayer.setLayerDefinitions(layerDefinitions);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:36:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/223770#M20808</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2017-01-27T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Results Include features excluded by definition query</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/1376164#M83492</link>
      <description>&lt;P&gt;For anyone encountering this issue when identifying against a&amp;nbsp;&lt;FONT face="courier new,courier"&gt;MapImageLayer&lt;/FONT&gt; in Version 4.x of the ArcGIS Maps SDK for JavaScript, the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#sublayers" target="_self"&gt;&lt;FONT face="courier new,courier"&gt;sublayers&lt;/FONT&gt;&lt;/A&gt; property of &lt;FONT face="courier new,courier"&gt;IdentifyParameters&lt;/FONT&gt; needs to be specified, as explained here: &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/td-p/1210531" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/td-p/1210531&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 21:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-results-include-features-excluded-by/m-p/1376164#M83492</guid>
      <dc:creator>skykasko</dc:creator>
      <dc:date>2024-01-30T21:37:25Z</dc:date>
    </item>
  </channel>
</rss>

