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

408
5
02-06-2024 07:32 AM
Labels (1)
WilsonLee
Occasional 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
5 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 Frequent 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
Occasional 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 Frequent 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
Occasional Contributor

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

I will contact Esri Tech Support regarding the error message 🙏

0 Kudos