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