<?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: Workaround to ignore a label layer when click? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134315#M12495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did any of you happen to figure out a solution for this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a feature that opens a hyperlink on click, and same thing, the label blocks the event from happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2017 00:08:28 GMT</pubDate>
    <dc:creator>AaronNepple1</dc:creator>
    <dc:date>2017-10-09T00:08:28Z</dc:date>
    <item>
      <title>Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134310#M12490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have a feature layer with a click event, and a label layer drawing on top of that to label the features. If I click the feature where there is a label, that label dom node blocks the click event on the feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my ideal world the 'disableMouseEvents()' method on an &lt;SPAN class="str" style="color: #303030;"&gt;"esri/layers/LabelLayer" would also pass off click events to the layer directly beneath it. In that sense it would be transparent, but just for clicks...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="str" style="color: #303030;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="str" style="color: #303030;"&gt;Has anyone else dealt with this? My current ideas are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Hard code the feature layer information into a special function triggered on the label layer click&lt;/P&gt;&lt;P&gt;- Generalize a label layer click function, so that it does a spatial query around it for affected layers and selects the layer with the highest map index&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 17:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134310#M12490</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-03-25T17:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134311#M12491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever find a solution to this? &amp;nbsp;I'm having the same issue and it's pretty frustrating. &amp;nbsp;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 18:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134311#M12491</guid>
      <dc:creator>brianmoran_usfs</dc:creator>
      <dc:date>2017-01-25T18:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134312#M12492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never did, I just use small text to try and block as little of the polygon as possible &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134312#M12492</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-01-25T19:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134313#M12493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brain,&lt;/P&gt;&lt;P&gt;Are you using api version 3.14 or greater? if so, you should be using "&lt;STRONG&gt;&lt;SPAN class=""&gt;setLabelingInfo&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;"&amp;nbsp; instead of LabelLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Thejus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134313#M12493</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2017-01-26T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134314#M12494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I am using v 3.18, and I am using the setLabelingInfo method on the feature layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 18:24:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134314#M12494</guid>
      <dc:creator>brianmoran_usfs</dc:creator>
      <dc:date>2017-01-27T18:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134315#M12495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did any of you happen to figure out a solution for this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a feature that opens a hyperlink on click, and same thing, the label blocks the event from happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 00:08:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134315#M12495</guid>
      <dc:creator>AaronNepple1</dc:creator>
      <dc:date>2017-10-09T00:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134316#M12496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Actually this is a pretty simple css fix. All you need to do is add this css rule:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="selector token"&gt;#_internal_LabelLayer_layer&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="property token"&gt;pointer-events&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; none&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&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 07:31:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134316#M12496</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T07:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134317#M12497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/rscheitlin"&gt;rscheitlin&lt;/A&gt;‌ That did the trick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help on this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134317#M12497</guid>
      <dc:creator>AaronNepple1</dc:creator>
      <dc:date>2017-10-10T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134318#M12498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's really great!&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 11:03:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134318#M12498</guid>
      <dc:creator>GianniContino</dc:creator>
      <dc:date>2017-11-03T11:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Workaround to ignore a label layer when click?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134319#M12499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For information, the class name has been changed&amp;nbsp;with version 3.25, the new class name is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 12px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d7ba7d;"&gt;#labels_layer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;pointer-events&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2018 08:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/workaround-to-ignore-a-label-layer-when-click/m-p/134319#M12499</guid>
      <dc:creator>StéphaneGuignard</dc:creator>
      <dc:date>2018-12-14T08:33:31Z</dc:date>
    </item>
  </channel>
</rss>

