zhaoxing
2022-03-15 a84360f5d8ac65ac860ebfb3f32cd6378540baf8
重新打开监控网格,清除之前数据
2个文件已修改
17 ■■■■■ 已修改文件
widgetsTS/widget_grid/view.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_grid/widget.js 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_grid/view.html
@@ -30,7 +30,7 @@
  </div>
  <div class="infoview">
    <div>
      <label><input type='checkbox' id='show_gridmap' checked/>网格图(CO:mg/m³ &nbsp; 其他:μg/m³)</label>
      <label><input type='checkbox' id='show_gridmap'/>网格图(CO:mg/m³ &nbsp; 其他:μg/m³)</label>
    </div>
    <div>
      <div id="style_radio"></div>
widgetsTS/widget_grid/widget.js
@@ -34,11 +34,11 @@
    //每个窗口创建完成后调用
    winCreateOK(opt, result) {
      // this.grid_500.show = true;
      // this.grid_1000.show = true;
      // this.grid_3000.show = true;
      // this.grid_5000.show = true;
      // this.map.setCameraView(mars3d.global_variables.grid_camerview.grid5000);
      this.grid_500.show = true;
      this.grid_1000.show = true;
      this.grid_3000.show = true;
      this.grid_5000.show = true;
      this.map.setCameraView(mars3d.global_variables.grid_camerview.grid5000);
      this.datatype = mars3d.global_variables.queryDataType;
      this.datatime = mars3d.global_variables.queryDataTStart;
    }
@@ -75,6 +75,11 @@
    //打开激活
    activate() {
      this.grid_500.show = false;
      this.grid_1000.show = false;
      this.grid_3000.show = false;
      this.grid_5000.show = false;
      this.heatmapGroupLayer.getLayers().forEach(layer => {
         layer.show= false;
      });