Hi folks
I need to show only visible layers at a particular scale from the web map in a div...any idea how can I get the visible layers from webmap at a particular scale. I am using ArcGIS webappbuilder 1.2 and ArcGIS JavaScript api 3.17.
Thanks
Deepika
Deepika,
You will need to use the LayerInfos class and the example in the docs constructor to get all the layers in the map and then each layer will have a isvisibleatscale method that you can call on the layer object.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.