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.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.