<?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>idea Indicate if HitTest result graphic is feature symbol or label in ArcGIS JavaScript Maps SDK Ideas</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/indicate-if-hittest-result-graphic-is-feature/idi-p/1537557</link>
    <description>&lt;P&gt;By default, &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest" target="_self"&gt;mapView.hitTest&lt;/A&gt; will return a feature if there was a hit on the feature's symbol,&amp;nbsp;&lt;STRONG&gt;including any visible label&lt;/STRONG&gt;. Sometimes this behavior is desired, but there may be instances, for example, where a developer would like a user to be able to select a feature by clicking on its symbol, but not by clicking on its label. Since labelingInfo label classes don't have the robust auto-placement functionality based on feature weights that labels created in Esri's desktop software do, a user could easily accidentally click on the label of a nearby feature instead of the line geometry for a separate feature underneath the label.&lt;/P&gt;&lt;P&gt;I would like to request a way for the developer to determine whether the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ViewHit" target="_self"&gt;ViewHit&lt;/A&gt; was the actual feature graphic or its label.&amp;nbsp; Then the developer could choose whether or not they want to proceed with the highlight/popup/etc.&lt;/P&gt;&lt;P&gt;As far as implementation, one solution could be to add a property like graphicPart to &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GraphicHit" target="_self"&gt;GraphicHit&lt;/A&gt;. Alternatively, MapView.hitTest() -&amp;gt; options -&amp;gt; exclude could also accept a symbol type, so all results of that &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html#type" target="_self"&gt;type&lt;/A&gt; will be excluded.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 21:49:51 GMT</pubDate>
    <dc:creator>jdyerLACSD</dc:creator>
    <dc:date>2024-09-11T21:49:51Z</dc:date>
    <item>
      <title>Indicate if HitTest result graphic is feature symbol or label</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/indicate-if-hittest-result-graphic-is-feature/idi-p/1537557</link>
      <description>&lt;P&gt;By default, &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest" target="_self"&gt;mapView.hitTest&lt;/A&gt; will return a feature if there was a hit on the feature's symbol,&amp;nbsp;&lt;STRONG&gt;including any visible label&lt;/STRONG&gt;. Sometimes this behavior is desired, but there may be instances, for example, where a developer would like a user to be able to select a feature by clicking on its symbol, but not by clicking on its label. Since labelingInfo label classes don't have the robust auto-placement functionality based on feature weights that labels created in Esri's desktop software do, a user could easily accidentally click on the label of a nearby feature instead of the line geometry for a separate feature underneath the label.&lt;/P&gt;&lt;P&gt;I would like to request a way for the developer to determine whether the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ViewHit" target="_self"&gt;ViewHit&lt;/A&gt; was the actual feature graphic or its label.&amp;nbsp; Then the developer could choose whether or not they want to proceed with the highlight/popup/etc.&lt;/P&gt;&lt;P&gt;As far as implementation, one solution could be to add a property like graphicPart to &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GraphicHit" target="_self"&gt;GraphicHit&lt;/A&gt;. Alternatively, MapView.hitTest() -&amp;gt; options -&amp;gt; exclude could also accept a symbol type, so all results of that &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html#type" target="_self"&gt;type&lt;/A&gt; will be excluded.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 21:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/indicate-if-hittest-result-graphic-is-feature/idi-p/1537557</guid>
      <dc:creator>jdyerLACSD</dc:creator>
      <dc:date>2024-09-11T21:49:51Z</dc:date>
    </item>
  </channel>
</rss>

