qinbo
2022-02-18 a57c6e7fbcb80806a42d774d69e9fe821c1afbfc
Layer display level bug fix
3个文件已修改
73 ■■■■■ 已修改文件
data/getLayerListByUserid.json 66 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/function_1001.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/getLayerListByUserid.json
@@ -9,7 +9,8 @@
            "style_prefix":"",
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no2", "co","so2","o31"],
            "show":false
            "show":false,
            "zIndex":20
        },
        {
@@ -22,7 +23,8 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10","no2", "co","so2","o3"],
            "regiontype":"00",
            "show":false
            "show":false,
            "zIndex":19
        },
        {
            "id": 1003,
@@ -34,7 +36,8 @@
            "style_selected":"tsp",
            "styleoptions": ["tsp"],
            "regiontype":"00",
            "show":false
            "show":false,
            "zIndex":18
        },
        {
            "id": 1004,
@@ -45,7 +48,8 @@
            "style_prefix":"",
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "show":true
            "show":true,
            "zIndex":17
        },
        {
            "id": 1005,
@@ -57,7 +61,8 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"00",
            "show":false
            "show":false,
            "zIndex":16
        },
        {
            "id": 100600,
@@ -69,7 +74,8 @@
            "style_selected":"pm10",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"00",
            "show":false
            "show":false,
            "zIndex":15
        },
        {
            "id": 100601,
@@ -81,7 +87,9 @@
            "style_selected":"pm10",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"01",
            "show":false
            "show":false,
            "zIndex":14
        },
        {
            "id": 100602,
@@ -93,7 +101,9 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"02",
            "show":false
            "show":false,
            "zIndex":13
        },
        {
            "id": 100603,
@@ -105,7 +115,9 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"03",
            "show":false
            "show":false,
            "zIndex":12
        },
        {
            "id": 100604,
@@ -117,7 +129,9 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"04",
            "show":false
            "show":false,
            "zIndex":11
        },
        {
            "id": 100605,
@@ -129,7 +143,9 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"05",
            "show":false
            "show":false,
            "zIndex":9
        },
        {
            "id": 100607,
@@ -141,7 +157,9 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"07",
            "show":false
            "show":false,
            "zIndex":8
        },
        {
            "id": 100610,
@@ -153,7 +171,9 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"10",
            "show":false
            "show":false,
            "zIndex":1
        },
        {
            "id": 100611,
@@ -165,7 +185,9 @@
            "style_selected":"pm25",
            "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"],
            "regiontype":"11",
            "show":false
            "show":false,
            "zIndex":2
        },
        {
            "id": 3000,
@@ -179,7 +201,9 @@
            "regiontype":"00",
            "minimumLevel":15,
            "maximumLevel":19,
            "show":false
            "show":false,
            "zIndex":4
        },
        {
            "id": 3001,
@@ -193,7 +217,9 @@
            "regiontype":"00",
            "minimumLevel":13,
            "maximumLevel":14,
            "show":false
            "show":false,
            "zIndex":5
        },
        {
            "id": 3002,
@@ -207,7 +233,9 @@
            "regiontype":"00",
            "minimumLevel":11,
            "maximumLevel":12,
            "show":false
            "show":false,
            "zIndex":6
        },
        {
            "id": 3003,
@@ -221,7 +249,9 @@
            "regiontype":"00",
            "minimumLevel":8,
            "maximumLevel":10,
            "show":false
            "show":false,
            "zIndex":7
        },
        {
            "id": 2001,
js/function_1001.js
@@ -46,7 +46,8 @@
    style_selected: item.style_selected,
    style_options: item.styleoptions,
    regiontype:item.regiontype,
    flyTo: false
    flyTo: false,
    zIndex:item.zIndex
  });
  
js/index.js
@@ -207,10 +207,6 @@
  // }) 
  mars3d.widget.on(mars3d.widget.EventType.activated, function (event) {
    if(mars3d.global_variables.timetype == "min" && event.sourceTarget.config.name == "监测业务"){
      $(".layui-layer").css("display", "none");
      haoutil.msg("请切换至天或时查看数据!!!");
    }
    console.log("激活了widget", event);
  });
  mars3d.widget.on(mars3d.widget.EventType.disabled, function (event) {