cshenfu
2022-10-27 fca9a405c53caeec1541f4b12865de2af319ee47
widgetsTS/widget_grid/widget.js
@@ -18,6 +18,7 @@
    }
    //初始化[仅执行1次]
    create() {
      this.grid_500 = this.map.getLayerById(3000);
      this.grid_1000 = this.map.getLayerById(3001);
      this.grid_3000 = this.map.getLayerById(3002);
@@ -28,12 +29,14 @@
      this.nodejs_url_predix = mars3d.global_variables.nodejs_url_predix;
      this.heatmapGroupLayer = new mars3d.layer.GroupLayer({ id: 5000, pid: 50, name: "", show: false });
      this.map.addLayer(this.heatmapGroupLayer);
      console.log(this.grid_500,this.grid_5000,this.grid_3000,this,"grid this")
    }
 
 
 
    //每个窗口创建完成后调用
    winCreateOK(opt, result) {
      console.log(this.map,"this.map.grid")
      //this.grid_500.show = true;
      //this.grid_1000.show = true;
      //this.grid_3000.show = true;