<?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: Map: wherever I click it opens a popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1402589#M84160</link>
    <description>&lt;P&gt;mainly the zone.js library was giving problems&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 14:37:31 GMT</pubDate>
    <dc:creator>fb1</dc:creator>
    <dc:date>2024-03-29T14:37:31Z</dc:date>
    <item>
      <title>Map: wherever I click it opens a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1400768#M84123</link>
      <description>&lt;P&gt;Hello, everyone,&lt;/P&gt;&lt;P&gt;I have a problem in the map that I cannot understand,&lt;BR /&gt;I recently upgraded to version 4.29 and had to download all the modules locally,&lt;BR /&gt;since then in the map I get that wherever I click a popup opens, whereas before it only opened when I clicked on a single element of a featureLayer, and of course when I click outside an element it opens an empty popup&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fb1_0-1711444206032.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99066i2B0CE32530A89F5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fb1_0-1711444206032.png" alt="fb1_0-1711444206032.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there anything I can do to avoid this behaviour?&lt;BR /&gt;or at least that it doesn't open popups if they are empty&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:12:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1400768#M84123</guid>
      <dc:creator>fb1</dc:creator>
      <dc:date>2024-03-26T09:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Map: wherever I click it opens a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1400876#M84127</link>
      <description>&lt;P&gt;Could you provide a codepen, github repo, stackblitz, or codesandbox to repro case to look at. It's possible there is data on the map with empty popup template, or some logic in the app to open the popup on click, but not way to tell otherwise.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1400876#M84127</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-03-26T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Map: wherever I click it opens a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1401697#M84142</link>
      <description>&lt;P&gt;I had the same issue. I wrote this snippet to fix the bug for now -- hopefully it won't be needed in a later release.&lt;/P&gt;&lt;P&gt;I'm not using this fix in production yet and is specific to the popup event loop my map uses (which is a pretty standard one), so definitely test it in your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;       reactiveUtils.watch(
            () =&amp;gt; view.popup?.viewModel?.active,
            (active) =&amp;gt; {
                if (active &amp;amp;&amp;amp; !view.popup.selectedFeature) {
                    view.closePopup();
                }
            }
        );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 20:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1401697#M84142</guid>
      <dc:creator>KyleONeill</dc:creator>
      <dc:date>2024-03-27T20:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Map: wherever I click it opens a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1402588#M84159</link>
      <description>&lt;P&gt;i discovered that with my version of angular (15) and consequently also the libraries were not up to date, so i had various problems after having put all the modules locally. i updated angular to version 17, and fixed all the bugs apart from the only error i saw that is known is the zoom's button not working&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 14:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1402588#M84159</guid>
      <dc:creator>fb1</dc:creator>
      <dc:date>2024-03-29T14:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Map: wherever I click it opens a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1402589#M84160</link>
      <description>&lt;P&gt;mainly the zone.js library was giving problems&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 14:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1402589#M84160</guid>
      <dc:creator>fb1</dc:creator>
      <dc:date>2024-03-29T14:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Map: wherever I click it opens a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1418714#M84497</link>
      <description>&lt;P&gt;Thank you for the resolution. It saved my day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the code after mapview initialized.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 14:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-wherever-i-click-it-opens-a-popup/m-p/1418714#M84497</guid>
      <dc:creator>BetulPercinel</dc:creator>
      <dc:date>2024-05-03T14:26:50Z</dc:date>
    </item>
  </channel>
</rss>

