<?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: Why is hitTest returning duplicate attributes? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-hittest-returning-duplicate-attributes/m-p/1035065#M72003</link>
    <description>&lt;P&gt;This will be fixed in 4.19 and you can test against our next build today.&amp;nbsp;&lt;A href="https://github.com/Esri/feedback-js-api-next" target="_blank"&gt;https://github.com/Esri/feedback-js-api-next&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 19:07:05 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-03-10T19:07:05Z</dc:date>
    <item>
      <title>Why is hitTest returning duplicate attributes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-hittest-returning-duplicate-attributes/m-p/1035053#M72002</link>
      <description>&lt;P&gt;I am trying to get the attributes of a graphic using&amp;nbsp;&lt;STRONG&gt;hitTest&lt;/STRONG&gt; and I'm getting some unexpected results. See &lt;A href="https://codepen.io/mstayner/pen/zYoyYPN" target="_self"&gt;this example&lt;/A&gt;. In the console, the first attributes of the first graphic is displayed once the layer loads. There are lots of attributes, and none of them are duplicated, just as expected.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CLE: 2
CO_RVlu: 0.01
CO_Rmvd: 5.06
C_Seq: 95
C_Storage: 6771
Cmn_Name: "Siberian elm"
Cn_DieBack: 15
Cn_Missing: 10
Collected: 1349395200000
Condition: "Fair"
Crew: "Linden+ Forrest+ Johnny"
Crown_Base: 21
Crown_Height: 53
DBH1: 41
DBH2: 0
DBH3: 0
DBH4: 0
DBH5: 0
DBH6: " "
Dedication: " "
FID: 1
GroundArea: 2596
Height: 74
Ht_DBH_ft: 4.5
Isoprene_E: 2.7
LAI: 3.96
Land_Use: "I"
Latitude: 35.610441
Leaf_Area: 10295
Leaf_Bmass: 144
Live_Top: 74
Longitude: -82.441189
Monoterp_E: 13.2
NO2_Rmvd: 39.24
NO2_Rvlu: 0
Native: "NO"
Notes: " "
O3_Rmvd: 470.97
O3_Rvlu: 0.42
PM2p5_RVlu: 1.99
PM2p5_Rmvd: 47.84
PM10_Rmvd: 343.45
PM10_Rvlu: 3.73
SO2_Rmvd: 27.64
SO2_Rvlu: 0
S_Value: "3,079.00"
Sci_Name: "Ulmus pumila"
Spp_Code: "ULPU"
Status: "P"
Street: "YES"
Tree_Age: " "
Tree_ID: 102
Tree_Site: "S"
Vocs_E: 15.9
Width_EW: 40
Width_NS: 75&lt;/LI-CODE&gt;&lt;P&gt;Then, when you click on a feature, it logs in the console the attributes of that graphic.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;C_Storage: 13227
FID: 1147
c_storage: 13227
fid: 1147&lt;/LI-CODE&gt;&lt;P&gt;This leaves me with 2 questions:&lt;/P&gt;&lt;P&gt;1. Why aren't all of the attributes shown in the results from the&amp;nbsp;&lt;STRONG&gt;hitTest&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;2. Why are the attributes shown duplicated? They appear to be the same except attribute names in the second copy are all lowercase.&lt;/P&gt;&lt;P&gt;I see both issues are fixed when I add &lt;STRONG&gt;outFields: "*"&amp;nbsp;&lt;/STRONG&gt;to the featureLayer. I'm just wondering what the default functionality is about.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 18:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-hittest-returning-duplicate-attributes/m-p/1035053#M72002</guid>
      <dc:creator>MattStayner</dc:creator>
      <dc:date>2021-03-10T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is hitTest returning duplicate attributes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-hittest-returning-duplicate-attributes/m-p/1035065#M72003</link>
      <description>&lt;P&gt;This will be fixed in 4.19 and you can test against our next build today.&amp;nbsp;&lt;A href="https://github.com/Esri/feedback-js-api-next" target="_blank"&gt;https://github.com/Esri/feedback-js-api-next&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 19:07:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-hittest-returning-duplicate-attributes/m-p/1035065#M72003</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-03-10T19:07:05Z</dc:date>
    </item>
  </channel>
</rss>

