Select to view content in your preferred language

How can I add a MAP SERVICE sub-layer to Web Viewer?

887
6
02-06-2024 07:32 AM
WilsonLee
Regular Contributor

Hello,

I have a Map Service (published from our on-prem ArcGIS Server and host the layer in AGOL), How can I add a MAP SERVICE sub-layer to Web Viewer?

(In the Web Map Classic Version, after i added a Map Service, i can get the URL of the sub-layer and add the sub-layer URL directly, but it doesn't work for the New Map Viewer) 

thanks,

W

WilsonLee_0-1707233461340.png

 

Tags (1)
0 Kudos
6 Replies
KenBuja
MVP Esteemed Contributor

You can add the URL directly by clicking Add and selection Add layer from URL

add.png

This brings up the Add layer dialog, which accepts the sub-layer URL

add1.png

0 Kudos
RhettZufelt
MVP Notable Contributor

Select the sub-layer you want.  Upper right, click Properties, expand "Information", then click on the layer name.  This will take you to the REST endpoint of the sub-layer.

RhettZufelt_0-1707234483916.png

 

R_

0 Kudos
WilsonLee
Regular Contributor

thanks all...yes, i have the rest URL , then "add layer from URL", but it doesn't work..(The classic version is fine) , any idea?

WilsonLee_0-1707234822147.png

 

0 Kudos
RhettZufelt
MVP Notable Contributor

Can you share the REST url?  I am having no issues in new map viewer (at least with this :).

RhettZufelt_0-1707235319723.png

 

R_

0 Kudos
WilsonLee
Regular Contributor

Thanks! Unfortunately, the service is locked and the content is confidential. 

I will contact Esri Tech Support regarding the error message 🙏

0 Kudos
OlivierJobin
Occasional Contributor

Did you get any help from the support?

I want to do the same thing but can't figure it out.

Thanks!

0 Kudos