简体   繁体   中英

Keeping TOC layers unchecked on first load in ArcGIS JavaScript API

I am using NLiu's TOC widget for displaying the layers. It is working perfectly, however, I wanted to keep all layers unchecked when it is loading on the browser (for performance reason). I tried to find a way on its javascript files but not succeed.

Any clue to do so?

将图层的可见图层设置为无:

layer.setVisibleLayers([])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM