Popups for map services do not work in newer versions of ArcGIS JS API

2329
11
Jump to solution
12-05-2023 04:14 PM
DanielWebb
Frequent Contributor

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.)

I’m using ES Modules, built with webpack, and a web map built with the new map viewer.

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.

Has anyone else noticed this?

11 Replies
DanielWebb
Frequent Contributor

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.

0 Kudos
Adrian
by
Occasional Contributor

@SeanStone 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.

We Just had to delete the 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, magically everything was ok. 🎉

At the end, we have an identical looking layer in ArcGIS Pro and on the server with the difference, that the popup is rendered.

We suspect a versioning and compatiblilty problem. The layer was migrated through several ArcGIS Pro versions and somehow ended in this currupt state.

0 Kudos