Select to view content in your preferred language

Why is there no "layers" property for a map service with many layers?

296
0
04-13-2019 10:13 AM
by Anonymous User
Not applicable

I'm having a difficult type extracting layer information from operational layers in web maps on our portal. I'm either missing something, or there is something weird about how our portal is configured, but I am having no luck getting layer information that I think should be available.

I have a web map with 3 operational layers, 2 of which are map services which contain several layers themselves.

Below is an example of what is returned when I print out the json of one map service - no layer information at all.

{ "id": "***",

"layerType": "ArcGISMapServiceLayer",

"url": "***/MapServer", "visibility": true,

"opacity": 1,

"title": "***",

"itemId": "***" }

Why is there no "layers" key here? There are a lot of layers in this map service. How do I get at them? 

Thank you,

Randy

0 Kudos
0 Replies