I'm working with a Web Map to feed a Javascript map; there are quite a few layers, so it's useful to have the ability to toggle the .popupEnabled property on and off.
We also prefer to maximize the configurations we can do in the Web Map (before getting into the javascript), including setting (what we thought) was the 'default .popupEnabled' property for our map layers. However, once a popup is disabled in the WebMap, the .popupEnabled property does not seem to do a whole lot.
This may be expected behavior, but it would be nice if we were just missing an easy switch to override the WebMap settings in the Javascript SDK?
Otherwise, we're just checking that our solutions are, either:
1: Revisit popup configurations in the Service Definition in ArcPro and republish (probably the correct way)
or
2: Enable all popups in the webmap, then setup a list of enable/disabled popups in the Javascript?