// scene为全局变量,用此方法找到对应的图层,name为三维地图的layer图层名,可以入库,再从库里读出,放到ztree树数据里,点击相应的图层,进行设置
var layer = scene.layers.find(name);
// 为true则显示,false则为隐藏
layer.visible = true;
// 刷新三维图层,用此代码后,页面会闪动刷新。一般不用。
// layer.refresh();

 

相关文章:

  • 2021-12-18
  • 2021-06-08
  • 2021-09-15
  • 2022-12-23
  • 2022-01-07
  • 2021-11-17
  • 2022-03-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-12-14
  • 2022-12-23
  • 2021-05-02
  • 2022-01-20
相关资源
相似解决方案