I'm not able to add a WebMap from Portal to my 4.x application - it looks like it needs something other than portalUrl. My code works fine for a webmap in arcgis.com. Does anyone know what I might be missing? The webmap is shared with everyone and I don't need to log into Portal to see it.
Solved! Go to Solution.
Thanks John! You are absolutely right - I had the order of the classes messed up.
This is a total user error, which I'm going to blame on my inability to switch between the Control and Command keys for Copy/Paste in Windows vs Mac...
I landed on this page looking for a solution to the same issue and, while the OP's problem has been solved here from somebody else, I wanted to add what I found in case others landed here looking for answers.
I did something really stupid - I was typing esri/Config instead of esri/config. Once I changed to lower case "c", the web map populated. Maybe my stupidity will help somebody else save a little time.