<?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 Popups for map services do not work in newer versions of ArcGIS JS API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357187#M83027</link>
    <description>&lt;P&gt;Has anyone else noticed strange behavior with popups in the last several versions of the ArcGIS JavaScript API? It seems to start around version 4.24. (Previous versions would do the popup but without highlighting the feature.)&lt;/P&gt;&lt;P&gt;I’m using ES Modules, built with webpack, and a web map built with the new map viewer.&lt;/P&gt;&lt;P&gt;It seems like map services with more complex symbology don’t show a popup. I’ve checked the web map to ensure popups are enabled and configured. Popups also work in the web map itself. But once brought into a custom web app, the popups don’t always work.&lt;/P&gt;&lt;P&gt;Has anyone else noticed this?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 00:14:50 GMT</pubDate>
    <dc:creator>DanielWebb</dc:creator>
    <dc:date>2023-12-06T00:14:50Z</dc:date>
    <item>
      <title>Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357187#M83027</link>
      <description>&lt;P&gt;Has anyone else noticed strange behavior with popups in the last several versions of the ArcGIS JavaScript API? It seems to start around version 4.24. (Previous versions would do the popup but without highlighting the feature.)&lt;/P&gt;&lt;P&gt;I’m using ES Modules, built with webpack, and a web map built with the new map viewer.&lt;/P&gt;&lt;P&gt;It seems like map services with more complex symbology don’t show a popup. I’ve checked the web map to ensure popups are enabled and configured. Popups also work in the web map itself. But once brought into a custom web app, the popups don’t always work.&lt;/P&gt;&lt;P&gt;Has anyone else noticed this?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 00:14:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357187#M83027</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2023-12-06T00:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357372#M83036</link>
      <description>&lt;P&gt;I'm not sure what I did wrong, but I did some further testing with very very minimal apps. It seems like 4.26 is when the popups stopped working for complex symbology in map services (I originally said 4.24). JS 4.24 does still have popups but without highlighting the feature. JS 4.25 has the popup &lt;EM&gt;as well as&lt;/EM&gt; highlighting the feature, which is ideal.&lt;/P&gt;&lt;P&gt;JS 4.26, 4.27, and 4.28 all do not work.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 15:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357372#M83036</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2023-12-06T15:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357380#M83037</link>
      <description>&lt;P&gt;f you could provide a repro sample showing the behavior in codepen, github, or stackblitz, we could better debug.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 15:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357380#M83037</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-12-06T15:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357461#M83038</link>
      <description>&lt;P&gt;I hope these help.&lt;/P&gt;&lt;P&gt;JS 4.25&lt;BR /&gt;&lt;A href="https://codepen.io/danielwebb/pen/OJddVwV" target="_blank" rel="noopener"&gt;https://codepen.io/danielwebb/pen/OJddVwV&lt;/A&gt;&lt;/P&gt;&lt;P&gt;JS 4.26&lt;BR /&gt;&lt;A href="https://codepen.io/danielwebb/pen/oNmmXxy" target="_blank" rel="noopener"&gt;https://codepen.io/danielwebb/pen/oNmmXxy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Forest Service roads and road centerlines are in a map service. FS are the black and white dotted lines (more complex symbology). The road centerlines have symbology scales set for each road class (so local roads turn off when zoomed too far out, etc).&lt;/P&gt;&lt;P&gt;The blue lines are streams and rivers which are a hosted layer. The popups always seem to work on hosted layers in every version.&lt;/P&gt;&lt;P&gt;(Portal version is 10.9.1)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 16:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1357461#M83038</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2023-12-06T16:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1358252#M83058</link>
      <description>&lt;P&gt;Passed this on for someone to look at, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 20:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1358252#M83058</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-12-07T20:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1478128#M84707</link>
      <description>&lt;P&gt;Hi Rene! Do you know if any progress has been made on this?&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 23:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1478128#M84707</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2024-05-23T23:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1500668#M84969</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Has there been any progress on this? I'm also using Experience Developer Edition 1.11 and the same thing is happening.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 23:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1500668#M84969</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2024-07-02T23:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1501054#M84976</link>
      <description>&lt;P&gt;I believe there was a support ticket opened for this. That would be best route to track it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 15:29:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1501054#M84976</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-07-03T15:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1540400#M85714</link>
      <description>&lt;P&gt;Same here with missing popups. In our case we have two layers with a disjunct definition query. One layer shows features with a specific attribute set to 1 (e.g. A=1). The other layer shows all other features (A&amp;lt;&amp;gt;1). One of this layers renders the popup, the other not.&lt;/P&gt;&lt;P&gt;A query directly to the REST endpoint shows, that the service and the layer are ok. The correct data is queried.&lt;/P&gt;&lt;P&gt;It's definitely a version problem in the Maps SDK. All popups are ok with version 4.24 and 4.25. Starting with version 4.26 up to 4.30, one of the layer doesn't render the popup. The build-in Map Viewer in the portal shows the popup, because it's running with 4.24.&lt;/P&gt;&lt;P&gt;So far we don't know what to do. What&amp;nbsp;circumstances&amp;nbsp;cause the popup not to render for an arbitrary layer? Any suggestions Esri?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 08:29:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1540400#M85714</guid>
      <dc:creator>Adrian</dc:creator>
      <dc:date>2024-10-21T08:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1589542#M86591</link>
      <description>&lt;P&gt;We experienced the same problem (even against 4.32) on a project.&lt;/P&gt;&lt;P&gt;As a &lt;STRONG&gt;workaround&lt;/STRONG&gt;...&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.when(() =&amp;gt; {
  view.map.layers.forEach((layer) =&amp;gt; {
    layer.when(() =&amp;gt; {
      if (layer.sublayers) {
        layer.sublayers.forEach((sublayer) =&amp;gt; {
          sublayer.renderer = sublayer.renderer;
        });
      }
    });
  });
});&lt;/LI-CODE&gt;&lt;P&gt;Adding this to the bottom of your sample seems to make the popups work as expected.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4984"&gt;@DanielWebb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sublayer.renderer = sublayer.renderer after the layer is ready seems to be making the popups work as expected again.&lt;/P&gt;&lt;P&gt;cc&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/463757"&gt;@Adrian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have let the support analysts know regarding an associated bug reported as well.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 16:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1589542#M86591</guid>
      <dc:creator>SeanStone</dc:creator>
      <dc:date>2025-02-26T16:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1589903#M86600</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/824176"&gt;@SeanStone&lt;/a&gt;&amp;nbsp;Thank you for your workaround. Last week, we found a workaround for the problem as well. However, we cannot explain, why it was working at the end.&lt;/P&gt;&lt;P&gt;We Just had to delete the&amp;nbsp;faulty layer in ArcGIS Pro, republish the service, add a new layer in ArcGIS Pro from scratch and setup all parameters according the old layer (naming, labeling, layer id, popup definition, definition query, symbolisation, etc.). After republishing the map service again,&amp;nbsp;magically everything was ok.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At the end, we have an identical looking layer in ArcGIS Pro and on the server with the difference, that the popup is rendered.&lt;/P&gt;&lt;P&gt;We suspect a versioning and compatiblilty problem. The layer was migrated through several ArcGIS Pro versions and somehow ended in this currupt state.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 07:27:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1589903#M86600</guid>
      <dc:creator>Adrian</dc:creator>
      <dc:date>2025-02-27T07:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Popups for map services do not work in newer versions of ArcGIS JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1595150#M86682</link>
      <description>&lt;P&gt;This is great! Thank you so much! Now maybe I can begin to update the apps to newer JS SDK versions. I was worrying that we were getting too far behind.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 14:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popups-for-map-services-do-not-work-in-newer/m-p/1595150#M86682</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2025-03-13T14:10:56Z</dc:date>
    </item>
  </channel>
</rss>

