<?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 Disable popup without disabling the highlight in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-without-disabling-the-highlight/m-p/1378125#M83552</link>
    <description>&lt;P&gt;I am using ArcGIS SDK for JS with React. I'm trying to dynamically (at different application's state) disable/enable the popup for a specific layer but leaving the highlight. When I disable the popup like `someFeatureLayer.popupEnabled = false` the highlight is lost as well. I have read about the solution like enabling the highlight manually&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight" target="_blank" rel="noopener"&gt;FeatureLayerView | API Reference | ArcGIS Maps SDK for JavaScript 4.28 | ArcGIS Developers&lt;/A&gt; and removing it manually&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-x-clear-highlights/td-p/95507" target="_blank" rel="noopener"&gt;Solved: Javascript API 4.X Clear Highlights - Esri Community&lt;/A&gt;. But it seems like a chore in conjunction with `useEffect` and I would presume, for such simple functionality, that ArcGIS should handle it on its own without using already mentioned methods. Is there a simpler way? Is it possible to simply enable the highlight by disable the popup on a specific layer?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 13:27:36 GMT</pubDate>
    <dc:creator>BartoszStolc</dc:creator>
    <dc:date>2024-02-05T13:27:36Z</dc:date>
    <item>
      <title>Disable popup without disabling the highlight</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-without-disabling-the-highlight/m-p/1378125#M83552</link>
      <description>&lt;P&gt;I am using ArcGIS SDK for JS with React. I'm trying to dynamically (at different application's state) disable/enable the popup for a specific layer but leaving the highlight. When I disable the popup like `someFeatureLayer.popupEnabled = false` the highlight is lost as well. I have read about the solution like enabling the highlight manually&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight" target="_blank" rel="noopener"&gt;FeatureLayerView | API Reference | ArcGIS Maps SDK for JavaScript 4.28 | ArcGIS Developers&lt;/A&gt; and removing it manually&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-4-x-clear-highlights/td-p/95507" target="_blank" rel="noopener"&gt;Solved: Javascript API 4.X Clear Highlights - Esri Community&lt;/A&gt;. But it seems like a chore in conjunction with `useEffect` and I would presume, for such simple functionality, that ArcGIS should handle it on its own without using already mentioned methods. Is there a simpler way? Is it possible to simply enable the highlight by disable the popup on a specific layer?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 13:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-without-disabling-the-highlight/m-p/1378125#M83552</guid>
      <dc:creator>BartoszStolc</dc:creator>
      <dc:date>2024-02-05T13:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Disable popup without disabling the highlight</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-without-disabling-the-highlight/m-p/1378197#M83555</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;No there is no automatic way of doing this if you disable popup. You have to use the layer view's highlight method to highlight as you already pointed out.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 16:02:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-without-disabling-the-highlight/m-p/1378197#M83555</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-02-05T16:02:51Z</dc:date>
    </item>
  </channel>
</rss>

