<?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: hitTest result sorting in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1377703#M83538</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/111155"&gt;@james-rae&lt;/a&gt;&amp;nbsp;as mentioned in &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1248705#M79933" target="_self"&gt;this post&lt;/A&gt;, the enhancement for the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest" target="_self"&gt;MapView.hitTest()&lt;/A&gt;&amp;nbsp;method to respect the map drawing order has been implemented for version 4.29 (releasing soon).&amp;nbsp;&lt;SPAN&gt;The returned features will adhere to the default drawing order of the data or a specific order if&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#orderBy" target="_blank" rel="noopener nofollow noreferrer"&gt;orderBy&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is specified on the layer.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 18:18:32 GMT</pubDate>
    <dc:creator>LaurenBoyd</dc:creator>
    <dc:date>2024-02-02T18:18:32Z</dc:date>
    <item>
      <title>hitTest result sorting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1248705#M79933</link>
      <description>&lt;P&gt;This is a follow-up of sorts to this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clarification-on-4-23-hittest-return-value/m-p/1157844" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clarification-on-4-23-hittest-return-value/m-p/1157844&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It was hinted (not promised) that hitTest results would be sorted by draw order by v4.24. As of v4.25 the result array is still random. I can get around this if all layers have an orderBy applied to a field with unique values, but I don't always have that luxury. Otherwise, as far as I can tell, the ability to get the "top most" hit has been gone since v4.23.&lt;/P&gt;&lt;P&gt;I'm curious if the enhancement to sort the hitTest array is scheduled for a release yet. If it's still marinating in the backlog I feel I'm going to have to start exploring alternative approaches. I'd be all ears if there are ways to derive this by digging into the innards of various API objects; my prodding around hasn't been able to find anything.&lt;/P&gt;&lt;P&gt;Appreciate any responses, good day.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 15:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1248705#M79933</guid>
      <dc:creator>james-rae</dc:creator>
      <dc:date>2023-01-17T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: hitTest result sorting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1248738#M79937</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you pointed out that the only workaround for the behavior you describe is here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clarification-on-4-23-hittest-return-value/m-p/1157887#M76795" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clarification-on-4-23-hittest-return-value/m-p/1157887#M76795&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do have plans to support sorting for hittest. But I don't have any dates when this will be implemented.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 16:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1248738#M79937</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-01-17T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: hitTest result sorting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1248740#M79938</link>
      <description>&lt;P&gt;Appreciate the response and confirmation of the feature's priority.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 16:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1248740#M79938</guid>
      <dc:creator>james-rae</dc:creator>
      <dc:date>2023-01-17T16:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: hitTest result sorting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1377703#M83538</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/111155"&gt;@james-rae&lt;/a&gt;&amp;nbsp;as mentioned in &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1248705#M79933" target="_self"&gt;this post&lt;/A&gt;, the enhancement for the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest" target="_self"&gt;MapView.hitTest()&lt;/A&gt;&amp;nbsp;method to respect the map drawing order has been implemented for version 4.29 (releasing soon).&amp;nbsp;&lt;SPAN&gt;The returned features will adhere to the default drawing order of the data or a specific order if&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#orderBy" target="_blank" rel="noopener nofollow noreferrer"&gt;orderBy&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is specified on the layer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 18:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hittest-result-sorting/m-p/1377703#M83538</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2024-02-02T18:18:32Z</dc:date>
    </item>
  </channel>
</rss>

