您好,您可以参考一下classic的图层管理器https://iclient.supermap.io/examples/classic/editor.html#controler_layerswitcher以及子图层控制https://iclient.supermap.io/examples/classic/editor.html#others_setlayerstatus,leaflet参考相应api