您可以参考这篇范例通过修改visible的可见值为true或false来控制图层的显隐状态。https://iclient.supermap.io/examples/openlayers/editor.html#controler_layerswitcher
您可以参考这篇博客来控制子图层的显隐https://blog.csdn.net/supermapsupport/article/details/50728060?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522161233702616780262514557%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=161233702616780262514557&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_v1~rank_blog_v1-1-50728060.pc_v1_rank_blog_v1&utm_term=%E5%9B%BE%E5%B1%82&spm=1018.2226.3001.4450