<?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: What is the layerDefinitions equivalent for identifyParameters in ArcGIS API for JavaScript version 4? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210769#M78635</link>
    <description>&lt;P&gt;I will upgrade my code to 4.24 so my map works correctly.&amp;nbsp; It's odd because 4.13 was working, and now even the identify pararameter layer option = 'visible' doesn't work anymore.&amp;nbsp; Even layers turned off are being identified.&lt;/P&gt;&lt;P&gt;Thanks again for your help!&amp;nbsp; You helped me with another issue and I am so grateful to have such a wonderful Esri user community.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 14:49:46 GMT</pubDate>
    <dc:creator>LoriMcCormack1</dc:creator>
    <dc:date>2022-09-08T14:49:46Z</dc:date>
    <item>
      <title>What is the layerDefinitions equivalent for identifyParameters in ArcGIS API for JavaScript version 4?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210531#M78617</link>
      <description>&lt;P&gt;Even though I have a defiintion query on my layers, the identify includes features I don't want.&amp;nbsp; In version 3.x, I was able to use layerDefinitions in the identifyParameters.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the equivalent in version 4.x?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 20:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210531#M78617</guid>
      <dc:creator>LoriMcCormack1</dc:creator>
      <dc:date>2022-09-07T20:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is the layerDefinitions equivalent for identifyParameters in ArcGIS API for JavaScript version 4?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210536#M78618</link>
      <description>&lt;P&gt;You can define the defintionExpression in a sublayer in the IdentifyParameters&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#sublayers" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#sublayers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can create a MapImageLayer with your sublayers, load it, then add those sublayers to the parameters.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#source" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#source&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 20:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210536#M78618</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-09-07T20:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the layerDefinitions equivalent for identifyParameters in ArcGIS API for JavaScript version 4?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210578#M78619</link>
      <description>&lt;P&gt;Hi ReneRubalcava,&lt;/P&gt;&lt;P&gt;That was very helpful.&lt;/P&gt;&lt;P&gt;This is what my parameters look like.&amp;nbsp; However, it still identifies features that are hidden because of the definition expression on the MapImageLayer.&amp;nbsp; At quick glance, can you tell why the definition expression doesn't appear to be working for identify?&amp;nbsp; I'm using version 4.13.&lt;/P&gt;&lt;P&gt;// Create identify task for the specified map service&lt;BR /&gt;identifyTask = new IdentifyTask(urlTravelImpacts);&lt;/P&gt;&lt;P&gt;// Set the geometry to the location of the view click&lt;BR /&gt;identifyParams = new IdentifyParameters();&lt;BR /&gt;identifyParams.tolerance = 5;&lt;BR /&gt;identifyParams.layerIds = [indexBridgeRestriction, indexRoadImpact, indexRestrictionCurrent, indexRestrictionFuture, indexReferencePoints, indexIntersectionNode, indexMilepostsEstablished, indexMaintDistrict];&lt;BR /&gt;identifyParams.layerOption = "visible";&lt;BR /&gt;identifyParams.width = view.width;&lt;BR /&gt;identifyParams.height = view.height;&lt;BR /&gt;identifyParams.returnGeometry = true;&lt;BR /&gt;identifyParams.sublayers = [&lt;BR /&gt;{&lt;BR /&gt;id: indexBridgeRestriction&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;id: indexRoadImpact,&lt;BR /&gt;definitionExpression: "TravelImpactStartDate &amp;lt;= '2022/09/07' AND TravelImpactEndDate &amp;gt;= '2022/09/07'"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;id: indexRestrictionCurrent,&lt;BR /&gt;definitionExpression: "TravelImpactStartDate &amp;lt;= '2022/09/07' AND TravelImpactEndDate &amp;gt;= '2022/09/07'"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;id: indexRestrictionFuture,&lt;BR /&gt;definitionExpression: "TravelImpactStartDate &amp;lt;= '2022/09/07' AND TravelImpactEndDate &amp;gt;= '2022/09/07'"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;id: indexReferencePoints&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;id: indexIntersectionNode&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;id: indexMilepostsEstablished&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;id: indexMaintDistrict&lt;BR /&gt;}&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 21:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210578#M78619</guid>
      <dc:creator>LoriMcCormack1</dc:creator>
      <dc:date>2022-09-07T21:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: What is the layerDefinitions equivalent for identifyParameters in ArcGIS API for JavaScript version 4?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210599#M78621</link>
      <description>&lt;P&gt;Ah, sorry. That won't work in 4.13. That was introduced at 4.23 I think. Before that, we didn't have that option in the IdentifyParameters like in 3x. In recent 4x version, the sublayers need to come from a MapImageLayer as they need a layer source.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/qBYbOyG?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/qBYbOyG?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 23:00:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210599#M78621</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-09-07T23:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is the layerDefinitions equivalent for identifyParameters in ArcGIS API for JavaScript version 4?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210769#M78635</link>
      <description>&lt;P&gt;I will upgrade my code to 4.24 so my map works correctly.&amp;nbsp; It's odd because 4.13 was working, and now even the identify pararameter layer option = 'visible' doesn't work anymore.&amp;nbsp; Even layers turned off are being identified.&lt;/P&gt;&lt;P&gt;Thanks again for your help!&amp;nbsp; You helped me with another issue and I am so grateful to have such a wonderful Esri user community.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 14:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-layerdefinitions-equivalent-for/m-p/1210769#M78635</guid>
      <dc:creator>LoriMcCormack1</dc:creator>
      <dc:date>2022-09-08T14:49:46Z</dc:date>
    </item>
  </channel>
</rss>

