<?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: disable popup on map using map component in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-on-map-using-map-component/m-p/1625311#M87268</link>
    <description>&lt;P&gt;This is a good question! Because it highlights one of the changes and nuances of using web components and HTML in general. Documentation on &lt;A href="https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML" target="_blank" rel="noopener"&gt;boolean&lt;/A&gt; for reference.&lt;/P&gt;&lt;P&gt;In HTML elements, the presence of an attribute is truthy. Even an empty string is truthy, so we don't have an attribute on the map components for `popup-enabled="false"` as that would be seen as true. Hopefully that makes sense.&lt;/P&gt;&lt;P&gt;So what we did in the map-components is make all boolean properties false by default and we have different names for them on the components. In this case, you can just add &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#popupDisabled" target="_blank" rel="noopener"&gt;`popup-disabled`&lt;/A&gt; to the element.&lt;/P&gt;&lt;P&gt;Demo:&amp;nbsp;&lt;A href="https://codepen.io/odoe/pen/VYLErVR?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/odoe/pen/VYLErVR?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;arcgis-map
  item-id="45725ba7d9fb47a0925398919b13d1fa"
  popup-disabled
&amp;gt;
&amp;lt;/arcgis-map&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jun 2025 12:12:19 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2025-06-20T12:12:19Z</dc:date>
    <item>
      <title>disable popup on map using map component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-on-map-using-map-component/m-p/1625248#M87267</link>
      <description>&lt;P&gt;There is a probably a simple solution to this. I just want to disable the popup on the feature layer defined by a url when you use arcgis-map component. I already used the&amp;nbsp;popup-enabled="false" but didn't work. I assume that the popup-enabled is working only for arcgis-map with&amp;nbsp;item-id.&lt;/P&gt;&lt;P&gt;I can click on a feature and view it on the arcgis-features, but I want to remove the popups display on the map&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/lkoumis1/pen/dPogWVR?editors=1111" target="_blank" rel="noopener"&gt;https://codepen.io/lkoumis1/pen/dPogWVR?editors=1111&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 05:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-on-map-using-map-component/m-p/1625248#M87267</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2025-06-20T05:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: disable popup on map using map component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-on-map-using-map-component/m-p/1625311#M87268</link>
      <description>&lt;P&gt;This is a good question! Because it highlights one of the changes and nuances of using web components and HTML in general. Documentation on &lt;A href="https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML" target="_blank" rel="noopener"&gt;boolean&lt;/A&gt; for reference.&lt;/P&gt;&lt;P&gt;In HTML elements, the presence of an attribute is truthy. Even an empty string is truthy, so we don't have an attribute on the map components for `popup-enabled="false"` as that would be seen as true. Hopefully that makes sense.&lt;/P&gt;&lt;P&gt;So what we did in the map-components is make all boolean properties false by default and we have different names for them on the components. In this case, you can just add &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#popupDisabled" target="_blank" rel="noopener"&gt;`popup-disabled`&lt;/A&gt; to the element.&lt;/P&gt;&lt;P&gt;Demo:&amp;nbsp;&lt;A href="https://codepen.io/odoe/pen/VYLErVR?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/odoe/pen/VYLErVR?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;arcgis-map
  item-id="45725ba7d9fb47a0925398919b13d1fa"
  popup-disabled
&amp;gt;
&amp;lt;/arcgis-map&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 12:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disable-popup-on-map-using-map-component/m-p/1625311#M87268</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-06-20T12:12:19Z</dc:date>
    </item>
  </channel>
</rss>

