AnsweredAssumed Answered

Get Layer by name

Question asked by DevonTaig on Apr 24, 2016
Latest reply on Apr 25, 2016 by DevonTaig

If I have been passed an esri.Map in a JavaScript function, how can I use the map object to get at a specific layer by name? The Map in question contains a map service, and the map service contains a number of sublayers (one of which I need). In my case, I want to get the MinScale and MaxScale for layer "0" (named "KMPosts" of this map service: River/GDT_SDE (MapServer)


Is it possible to do that without making a round-trip to the server?