The layer cannot be added to the map

106
1
Jump to solution
08-31-2022 08:46 AM
Labels (2)
drewcole232
New Contributor III

Hello, 

I am trying to determine why browsers can not connect to layers within my web app.  After applying the URL to a browser outside of the host server, hitting "F12" on my keyboard, I noticed the console tab was showing an attempted point to local host, if I replace  "localhost" with the actual server name and add it to a new tab, it appears to point to information. Should the actual server name where the data is hosted be updated in the code? Seems unlikely, but I'm not sure what else to look into right now. 

I have tried removing the layer then re-adding it. I've tried republishing the service. I've tried different browsers. Not sure what else to try. 

Troubleshooting.PNG

0 Kudos
1 Solution

Accepted Solutions
drewcole232
New Contributor III

My company uses a web adaptor. I needed to replace "localhost" with the web adaptor string when adding the layer to the web map. 

View solution in original post

0 Kudos
1 Reply
drewcole232
New Contributor III

My company uses a web adaptor. I needed to replace "localhost" with the web adaptor string when adding the layer to the web map. 

0 Kudos