Select to view content in your preferred language

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

1033
3
08-30-2021 07:15 AM
GeoDev
by
Emerging Contributor

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
Honored Contributor

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
Emerging Contributor

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
Honored Contributor

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