Feature Layer renders on CodePen, but does not render on Live Server (VSCode)

556
3
08-30-2021 07:15 AM
GeoDev
by
New Contributor II

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.

0 Kudos
3 Replies
ReneRubalcava
Frequent Contributor II

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.

0 Kudos
GeoDev
by
New Contributor II

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 

0 Kudos
ReneRubalcava
Frequent Contributor II

Not seeing any issues in Brave, Chrome, or Firefox.

ReneRubalcava_0-1630370701814.png

 

Maybe it's a browser/network related issue. I'm on Linux if that matters.

0 Kudos