I've been combing the ArcGIS REST API Resource Index for a few days now, and I still can't seem to figure out how or where I would query the available layers for a webmap, given the map id, name, or any other resource to identify it. I did find a page (Dynamically create layer list | ArcGIS API for JavaScript) detailing how to make a document able to select layers for a "stock map," and while I would eventually like to be able to select visible layers when exporting a webmap, at present I just need the REST URL for listing the layers. Thanks in advance for any assistance.
... View more