首页 / 浏览问题 / WebGIS / 问题详情
iClient3D for WebGL如何删除图层?
10EXP 2020年08月21日
用scene.addS3MTilesLayerByScp()添加的S3MTiles图层,如何删除?经测试,scene.layers.removeAll()虽然成功删除了图层,但图层占用的内存并未回收,内存泄露

1个回答

您好,removeAll(layer, destroy),当destroy为true时释放资源,也可以使用destroy()销毁图层,释放内存。具体可以参考APIhttp://support.supermap.com.cn:8090/webgl/Build/Documentation/S3MTilesLayer.html?classFilter=layer#destroy;  http://support.supermap.com.cn:8090/webgl/Build/Documentation/Layers.html?classFilter=layer#removeAll

6,077EXP 2020年08月21日
你好,这个链接打不开,请问有其他链接吗?
...