CODEPEN: https://codepen.io/ggii/pen/MWmMXxv
However, when I put it on my own machine to work on, I can only get the basemap to show up. The feature layer (soil map units) does not show up unfortunately. Why is this?
See screenshot. Looks like the connection to the feature service is getting blocked.
This looks like it might be an issue with the Live Server extension.
https://github.com/ritwickdey/vscode-live-server/issues/249#issuecomment-497557001
I don't use it, but they provide some work arounds in their repo, maybe there is better solution there. Not related to Esri stuff.
Thanks for your help. I pushed it to my github pages and I'm still getting the same error so it can't be the Live Server extension. Here's the gp link: https://ggroshansii.github.io/ESRI-API/soilOrder/index.html
Not seeing any issues in Brave, Chrome, or Firefox.
Maybe it's a browser/network related issue. I'm on Linux if that matters.