ソースを参照

地图图层根据条件过滤

songxy 1 年間 前
コミット
cd020498be

+ 1 - 0
BJYSYBZ_C/public/config.js

@@ -171,6 +171,7 @@ window.ApplicationConfig = {
               params: {
                 version: '1.1.1',
                 layers: 'ysybz:bjwlyd2000',
+                cql_filter: ""
               },
               url: 'https://zdzy.zrzyt.zj.gov.cn/geoserver/ysybz/wms',
               queryUrl: 'https://zdzy.zrzyt.zj.gov.cn/geoserver/ysybz',

+ 2558 - 0
BJYSYBZ_C/public/config_dev.js

@@ -0,0 +1,2558 @@
+window.ApplicationConfig = {
+  baseUrl: 'http://localhost:7089/ysgzybz',
+  mapLayerConfig: {
+    use: "innerNet",
+    projection: {
+      "EPSG:4490": "+proj=longlat +ellps=GRS80 +no_defs" // proj4.defs("EPSG:4490","+proj=longlat +ellps=GRS80 +no_defs");
+    },
+    innerNet: {
+      view: {
+        center: [120.19308, 30.19711],
+        zoom: 13,
+        fitExtent: [
+          119.93054011309823,
+          27.58795490358181,
+          121.24821284259042,
+          28.05212726686306
+        ],
+        minZoom: 7,
+        maxZoom: 21
+      },
+      layers: [
+        {
+          id: "jcdl", // id 一经指定,切勿轻易修改
+          name: "基础地理",
+          enabled: true, // 是否启用,启用才会显示在页面中
+          expand: false, // 是否展开折叠
+          visible: true, // 是否显示子图层
+          base: true, // 是否底图,底图 在 设置 visible-layer-ids 时会跳过,向下传递
+          opacity: 1, // 图层透明度,取值0~1或false,false禁用透明度调节功能,可选配置
+          hidden: false, // 只在 layerTree 组件里面不显示,代码上依旧能获取到,可选配置
+          children: [
+            {
+              id: "zjyx-g",
+              name: "浙江-影像",
+              enabled: true,
+              expand: false,
+              visible: true,
+              children: [
+                {
+                  id: 'tdt',
+                  name: "天地图影像",
+                  enabled: true,
+                  visible: true,
+                  wmtsForceUrl: true,
+                  serverType: "tdtxyz",
+                  url: "http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=f2f2a746d8ec501d1c60d1ac7d7e063c"
+                },
+              ]
+            },
+            {
+              id: "xzqh",
+              name: "行政区划",
+              enabled: true,
+              expand: false,
+              visible: false,
+              children: [
+                {
+                  id: "xzqh-s",
+                  name: "市级行政区",
+                  enabled: true,
+                  visible: true,
+                  serverType: "ArcGISTile",
+                  url:
+                    "https://zlzd.zrzyt.zj.gov.cn/gtkj/SZSW/ef622c03738048d2962fb27c0e28aa64/arcgis/rest/services/GCS330000_1001_XZQH_2021_TM/GCS330000_1001_XZQH_DS_2021_TM/MapServer"
+                },
+                {
+                  id: "xzqh-s-search",
+                  name: "市级行政区",
+                  enabled: true,
+                  visible: false,
+                  serverType: "dynamic",
+                  url:
+                    "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/zp/XZQ_SJ/MapServer"
+                },
+                {
+                  id: "xzqh-x-search",
+                  name: "县级行政区",
+                  enabled: true,
+                  visible: false,
+                  serverType: "dynamic",
+                  url:
+                    "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/zp/XZQ_XJ/MapServer"
+                },
+                {
+                  id: "xzqh-x",
+                  name: "县级行政区",
+                  enabled: true,
+                  visible: false,
+                  serverType: "ArcGISTile",
+                  url:
+                    "https://zlzd.zrzyt.zj.gov.cn/gtkj/SZSW/8eebbfb5f4154884b948fffdd0925158/arcgis/rest/services/GCS330000_1001_XZQH_2021_TM/GCS330000_1001_XZQH_QX_2021_TM/MapServer"
+                },
+                {
+                  id: "xzqh-z-search",
+                  name: "镇级行政区",
+                  enabled: true,
+                  visible: false,
+                  serverType: "dynamic",
+                  url:
+                    "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/zp/XZQ_ZJ/MapServer"
+                }
+              ]
+            }
+          ]
+        },
+        {
+          id: "dktc",
+          name: "图层服务",
+          enabled: true,
+          expand: true,
+          visible: false,
+          children: [
+            {
+              id: "hzyx-202311",
+              name: "杭州-影像-11",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202311_BX.gis`
+            },
+            {
+              id: "hzyx-202310",
+              name: "杭州-影像-10",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202310.gis`
+            },
+            {
+              id: "hzyx-202309",
+              name: "杭州-影像-09",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202309.gis`
+            },
+            {
+              id: "hzyx-202308",
+              name: "杭州-影像-08",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202308.gis`
+            },
+            {
+              id: "hzyx-202307",
+              name: "杭州-影像-07",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              url: `https://kjzzyy.hzsgis.com:8082/Ip109-13-8083/512834d664a4d3407b4c18ba3e8b3b66373945ec/Tile/RemoteRest/YG_HZRASTER202307.gis`
+            },
+            {
+              id: "bj-wlyd",
+              name: "滨江未供地块",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "sfygd is null or sfygd = ''",
+                  "1": "sfygd is null or sfygd = ''",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJWLYD/MapServer",
+              legend: {
+                title: "未供地块资源",
+                defs: {
+                  一类工业用地: {
+                    color: "#BD9673",
+                    query: {}
+                  },
+                  中小学用地: {
+                    color: "#FF82CE",
+                    query: {}
+                  },
+                  二类居住用地: {
+                    color: "#FFFF29",
+                    query: {}
+                  },
+                  住宅用地: {
+                    color: "#FFFF29",
+                    query: {}
+                  },
+                  体育用地: {
+                    color: "#00A67B",
+                    query: {}
+                  },
+                  供电用地: {
+                    color: "#006584",
+                    query: {}
+                  },
+                  公共交通场站用地: {
+                    color: "#DEDBDE",
+                    query: {}
+                  },
+                  公园绿地: {
+                    color: "#00FF00",
+                    query: {}
+                  },
+                  其他公用设施用地: {
+                    color: "#006584",
+                    query: {}
+                  },
+                  农林用地: {
+                    color: "#63AE63",
+                    query: {}
+                  },
+                  医疗卫生用地: {
+                    color: "#FF7D7B",
+                    query: {}
+                  },
+                  商业服务业设施用地: {
+                    color: "#FF0000",
+                    query: {}
+                  },
+                  商业用地: {
+                    color: "#FF0000",
+                    query: {}
+                  },
+                  商业金融业用地: {
+                    color: "#FF0063",
+                    query: {}
+                  },
+                  安全设施用地: {
+                    color: "#006584",
+                    query: {}
+                  },
+                  广场绿地: {
+                    color: "#009600",
+                    query: {}
+                  },
+                  排水用地: {
+                    color: "#006584",
+                    query: {}
+                  },
+                  文物古迹用地: {
+                    color: "#849252",
+                    query: {}
+                  },
+                  旅馆业用地: {
+                    color: "#FF0000",
+                    query: {}
+                  },
+                  服务设施用地: {
+                    color: "#006584",
+                    query: {}
+                  },
+                  村镇居民用地: {
+                    color: "#FFFF29",
+                    query: {}
+                  },
+                  水域: {
+                    color: "#63CBFF",
+                    query: {}
+                  },
+                  特殊用地: {
+                    color: "#849252",
+                    query: {}
+                  },
+                  社会停车场用地: {
+                    color: "#DEDBDE",
+                    query: {}
+                  },
+                  综合交通枢纽用地: {
+                    color: "#DEDBDE",
+                    query: {}
+                  },
+                  绿地: {
+                    color: "#CEF77B",
+                    query: {}
+                  },
+                  轨道交通线路用地: {
+                    color: "#DEDBDE",
+                    query: {}
+                  },
+                  防护绿地: {
+                    color: "#CEF77B",
+                    query: {}
+                  },
+                  非建设用地: {
+                    color: "#006584",
+                    query: {}
+                  },
+                  其他: {
+                    color: "#006584",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-kgdk",
+              name: "滨江控规地块",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0",
+                layerDefs: {
+                  0: "xzqdm like '330108%'"
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/gtkj-zjzwfw/proxy/GDPProxy231/4a2d7631371742f782c161df3f50cca8/arcgis/rest/services/GCS330000K2007_KZXXXGH_GHDK/GCS330000_2007_KZXXXGH_GHDK_GKY_2022/MapServer",
+              legend: {
+                title: "滨江控规地块",
+                defs: {
+                  居住用地: {
+                    color: "rgba(255, 255, 0, 255)",
+                    query: {}
+                  },
+                  公共管理与公共服务用地: {
+                    color: "rgba(255, 128, 191, 255)",
+                    query: {}
+                  },
+                  商业服务业设施用地: {
+                    color: "rgba(254, 0, 0, 255)",
+                    query: {}
+                  },
+                  工业用地: {
+                    color: "rgba(186, 150, 116, 255)",
+                    query: {}
+                  },
+                  道路与交通设施用地: {
+                    color: "rgba(183, 183, 183, 255)",
+                    query: {}
+                  },
+                  绿地与广场用地: {
+                    color: "rgba(8, 249, 9, 255)",
+                    query: {}
+                  },
+                  公用设施用地: {
+                    color: "rgba(125, 166, 217, 255)",
+                    query: {}
+                  },
+                  物流仓储用地: {
+                    color: "rgba(223, 128, 255, 255)",
+                    query: {}
+                  },
+                  非建设用地: {
+                    color: "rgba(0, 255, 255, 255)",
+                    query: {}
+                  },
+                  建设用地: {
+                    color: "rgba(202, 151, 0, 255)",
+                    query: {}
+                  },
+                  备用地: {
+                    color: "rgba(254, 254, 254,255)",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "bjq-xzq",
+              name: "滨江区行政区",
+              enabled: true,
+              visible: false,
+              serverType: 'wms',
+              params: {
+                version: '1.1.1',
+                layers: 'sde:xzq',
+              },
+              url: 'https://zdzy.zrzyt.zj.gov.cn/geoserver/sde/wms',
+              queryUrl: 'https://zdzy.zrzyt.zj.gov.cn/geoserver/sde',
+            },
+            {
+              id: "bjq-gd",
+              name: "滨江区供地地块",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0",
+                layerDefs: {
+                  0: "xzqdm like '330108%'"
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJQGD/MapServer",
+            },
+            {
+              id: "bj-wnz",
+              name: "滨江未农转用地块",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJWNZ/MapServer",
+              legend: {
+                title: "未农转用地块资源",
+                defs: {
+                  未农转: {
+                    color: "#A2AE71",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-gyyd-wst",
+              name: "滨江工业用地五色图",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "1=1",
+                  "1": "1=1",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJWST/MapServer",
+              legend: {
+                title: "滨江工业用地五色图",
+                defs: {
+                  亩均税收大于100: {
+                    color: "#00FF00",
+                    query: {}
+                  },
+                  '亩均税收50~100': {
+                    color: "#0070FF",
+                    query: {}
+                  },
+                  '亩均税收30~50': {
+                    color: "#FF00DF",
+                    query: {}
+                  },
+                  '亩均税收10~30': {
+                    color: "#FFFF2D",
+                    query: {}
+                  },
+                  '亩均税收小于10': {
+                    color: "red",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-bp",
+              name: "滨江批准",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "1=1",
+                  "1": "1=1",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/TDBP_BJ/MapServer",
+              legend: {
+                title: "滨江批准用地",
+                defs: {
+                  批准用地: {
+                    color: "#64C8FF",
+                    query: {}
+                  },
+                }
+              }
+            },
+            // {
+            //   id: "bj-gd",
+            //   name: "滨江供地",
+            //   enabled: true,
+            //   visible: false,
+            //   serverType: "dynamic",
+            //   params: {
+            //     layers: "show:0,1",
+            //     layerDefs: {
+            //       "0": "1=1",
+            //       "1": "1=1",
+            //     }
+            //   },
+            //   url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/TDGY_BJ/MapServer",
+            //   legend: {
+            //     title: "滨江供地",
+            //     defs: {
+            //       供地: {
+            //         color: "#73FFDF",
+            //         query: {}
+            //       },
+            //     }
+            //   }
+            // },
+            {
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              name: "开发区_国家级",
+              id: "kfq-gjj",
+              type: "layer",
+              identify: false,
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "1 = 1 and KFQJB = '国家级'",
+                  "1": "1 = 1 and KFQJB = '国家级'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/kfq/MapServer",
+              legend: {
+                title: "开发区(国家级)",
+                defs: {
+                  "开发区(国家级)": {
+                    color: "#0070FF",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              name: "开发区_省级",
+              id: "kfq-sj",
+              type: "layer",
+              identify: false,
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "1 = 1 and KFQJB = '省级'",
+                  "1": "1 = 1 and KFQJB = '省级'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/kfq/MapServer",
+              legend: {
+                title: "开发区(省级)",
+                defs: {
+                  "开发区(省级)": {
+                    color: "#E64C00",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              name: "开发区",
+              id: "kfq",
+              type: "layer",
+              identify: false,
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/kfq/MapServer",
+              legend: {
+                title: "开发区",
+                defs: {
+                  "开发区(国家级)": {
+                    color: "#0070FF",
+                    query: {}
+                  },
+                  "开发区(省级)": {
+                    color: "#FFAA00",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              name: "行业类别切片",
+              id: "hylbTile",
+              type: "layer",
+              identify: false,
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "1 = 1",
+                  "1": "1 = 1"
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/ZDZY/SDHY/MapServer",
+              legend: {
+                title: "行业类别",
+                defs: {
+                  "行业类别": {
+                    color: "#d56d78",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "gyyd_all",
+              name: "工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "http://10.249.2.51:6080/arcgis/rest/services/GYYDDC/GYYD_ALL/MapServer",
+              legend: {
+                title: "工业用地",
+                defs: {
+                  工业用地: {
+                    color: "#0099FF",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "pewg",
+              name: "批而未供",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/pewg/MapServer",
+              legend: {
+                title: "批而未供",
+                defs: {
+                  批而未供: {
+                    color: "#A800E6",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "qlzy",
+              name: "潜力空间",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GYQLKJ/MapServer",
+              legend: {
+                title: "潜力空间",
+                defs: {
+                  潜力空间: {
+                    color: "#A83801",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "gyyd",
+              name: "工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/gyyd/MapServer",
+              legend: {
+                title: "工业用地",
+                defs: {
+                  工业用地: {
+                    color: "#A83801",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "zzyd",
+              name: "住宅用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/zzyd/MapServer",
+              legend: {
+                title: "住宅用地",
+                defs: {
+                  住宅用地: {
+                    color: "#FFFF73",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "syyd",
+              name: "滨江商业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/syyd/MapServer",
+              legend: {
+                title: "商业用地",
+                defs: {
+                  商业用地: {
+                    color: "#FF0000",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "bj-zzyd",
+              name: "滨江住宅用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:2,3",
+                layerDefs: {
+                  "2": "tdyt like '07%'",
+                  "3": "tdyt like '07%'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/syyd/MapServer",
+              legend: {
+                title: "滨江住宅用地",
+                defs: {
+                  滨江住宅用地: {
+                    color: "#FFFF2D",
+                    query: {}
+                  }
+                }
+              }
+            },
+
+            {
+              id: "bj-gyyd-new",
+              name: "滨江工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/gyyd/MapServer",
+              legend: {
+                title: "滨江工业用地",
+                defs: {
+                  滨江工业用地: {
+                    color: "#BB9674",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "bj-zzyd-new",
+              name: "滨江住宅用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/zzyd/MapServer",
+              legend: {
+                title: "滨江住宅用地",
+                defs: {
+                  滨江住宅用地: {
+                    color: "#FFFF2D",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "bj-jyyd",
+              name: "滨江教育用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/bjjyyd/MapServer",
+              legend: {
+                title: "滨江教育用地",
+                defs: {
+                  滨江教育用地: {
+                    color: "#00FFC5",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "qtjsyd",
+              name: "其他建设用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/qtjsyd/MapServer",
+              legend: {
+                title: "其他建设用地",
+                defs: {
+                  其他建设用地: {
+                    color: "#FF0000",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "nyd",
+              name: "农用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/nyd/MapServer",
+              legend: {
+                title: "农用地",
+                defs: {
+                  农用地: {
+                    color: "#8CFC61",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "wlyd",
+              name: "未利用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/wlyd/MapServer",
+              legend: {
+                title: "未利用地",
+                defs: {
+                  未利用地: {
+                    color: "#97DBF2",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "mjpj",
+              name: "亩均评价",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/mjpj/MapServer",
+              legend: {
+                title: "亩均评价",
+                defs: {
+                  亩均高效: {
+                    color: "#0070FF",
+                    query: {}
+                  },
+                  亩均低效: {
+                    color: "#E60001",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "mjpj-bj",
+              name: "亩均评价",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/mjpj/MapServer",
+              legend: {
+                title: "亩均评价",
+                defs: {
+                  亩均高效: {
+                    color: "#0070FF",
+                    query: {}
+                  },
+                  亩均低效: {
+                    color: "#E60001",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "gsqy",
+              name: "规上企业",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/gsqy/MapServer",
+              legend: {
+                title: "规上企业",
+                defs: {
+                  规上企业: {
+                    color: "#FFC47E",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "gxqy",
+              name: "高新企业",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/gxqy/MapServer",
+              legend: {
+                title: "高新企业",
+                defs: {
+                  高新企业: {
+                    color: "#68F4C1",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "hyfb",
+              name: "行业分布",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/hyfb/MapServer",
+              legend: {
+                title: "行业分布",
+                defs: {
+                  行业分布: {
+                    color: "#64C8FF",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "hyfb1",
+              name: "行业分布",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/hyfb/MapServer",
+            },
+            {
+              id: "hyfb2",
+              name: "行业分布",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:2,3"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/hyfb/MapServer",
+            },
+            {
+              id: "syjg",
+              name: "石油加工炼焦及核燃料加工业",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GH_25/MapServer",
+              legend: {
+                title: "石油加工炼焦及核燃料加工业",
+                defs: {
+                  石油加工炼焦及核燃料加工业: {
+                    color: "#FF0000",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "hxyl",
+              name: "化学原料及化学制品制造业",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GH_26/MapServer",
+              legend: {
+                title: "化学原料及化学制品制造业",
+                defs: {
+                  化学原料及化学制品制造业: {
+                    color: "#FF0000",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "fjs",
+              name: "非金属矿物制品业",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GH_30/MapServer",
+              legend: {
+                title: "非金属矿物制品业",
+                defs: {
+                  非金属矿物制品业: {
+                    color: "#FF0000",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "hsjs",
+              name: "黑色金属冶炼及压延加工业",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GH_31/MapServer",
+              legend: {
+                title: "黑色金属冶炼及压延加工业",
+                defs: {
+                  黑色金属冶炼及压延加工业: {
+                    color: "#FF0000",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "ysjs",
+              name: "有色金属冶炼及压延加工业",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GH_31/MapServer",
+              legend: {
+                title: "有色金属冶炼及压延加工业",
+                defs: {
+                  有色金属冶炼及压延加工业: {
+                    color: "#FF0000",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "dlrl",
+              name: "电力热力的生产和供应业",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GH_31/MapServer",
+              legend: {
+                title: "电力热力的生产和供应业",
+                defs: {
+                  电力热力的生产和供应业: {
+                    color: "#FF0000",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "sjjxjzzyq",
+              name: "世界级先进制造业群",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/415hy/MapServer",
+              legend: {
+                title: "世界级先进制造业群",
+                defs: {
+                  现代消费与健康: {
+                    color: "rgba(255, 85, 0, 255)",
+                    query: {}
+                  },
+                  新一代信息技术: {
+                    color: "rgba(0, 92, 230, 255)",
+                    query: {}
+                  },
+                  高端装备: {
+                    color: "rgba(169, 0, 230, 255)",
+                    query: {}
+                  },
+                  绿色石化与新材料: {
+                    color: "rgba(255, 255, 0, 255)",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "tscyjq",
+              name: "特色产业集群",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/415xdhy/MapServer",
+              legend: {
+                title: "特色产业集群",
+                defs: {
+                  特色产业集群: {
+                    color: "#FF0000",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "jsyd-yh",
+              name: "建设用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/JSYD_YH/MapServer",
+              legend: {
+                title: "建设用地",
+                defs: {
+                  工业用地: {
+                    color: "#FFE383",
+                    query: {}
+                  },
+                  商服用地: {
+                    color: "#49DEFF",
+                    query: {}
+                  },
+                  住宅用地: {
+                    color: "#37FFB6",
+                    query: {}
+                  },
+                  其他用地: {
+                    color: "#FFA77F",
+                    query: {}
+                  },
+
+
+                }
+              }
+            },
+            {
+              id: "nyd-yh",
+              name: "农用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/NYD_YH/MapServer",
+              legend: {
+                title: "农用地",
+                defs: {
+                  农用地: {
+                    color: "#C8B85F",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "wlyd-yh",
+              name: "未利用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/WLYD_YH/MapServer",
+              legend: {
+                title: "未利用地",
+                defs: {
+                  未利用地: {
+                    color: "#8FCCCA",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "kfbj-yh",
+              name: "城镇开发边界",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/CZKFBJ_YH/MapServer",
+              legend: {
+                title: "城镇开发边界",
+                defs: {
+                  城镇开发边界: {
+                    color: "#FF0000",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "shq-yh-all",
+              name: "十五分钟生活圈",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              zIndex: 999,
+              params: {
+                layers: "show: 0,1,2,3,4,5,6,7,8,9"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/SHYS_SWFZ_all/MapServer",
+              legend: {
+                title: "十五分钟生活圈",
+                defs: {
+                  十五分钟生活圈: {
+                    color: "#FF5500",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "shq-yh",
+              name: "生活圈",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/SHYS_SWFZ/MapServer",
+              legend: {
+                title: "生活圈",
+                defs: {
+                  生活圈: {
+                    color: "#FF0000",
+                    query: {}
+                  },
+                }
+              }
+            },
+
+            {
+              id: "yh-qlzy",
+              name: "余杭潜力资源",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer2/arcgis/rest/services/ZDZY/ZDZY_KGDK_GYYD/MapServer",
+              legend: {
+                title: "潜力资源",
+                defs: {
+                  潜力资源: {
+                    color: "#EB6138",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "yh-pewg",
+              name: "余杭批而未供",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer2/arcgis/rest/services/ZDZY/ZDZY_PEWG_WGYY/MapServer",
+              legend: {
+                title: "批而未供",
+                defs: {
+                  只征不转: {
+                    color: "#fd25bd",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '只征不转'
+                    }
+                  },
+                  农转用无法调整: {
+                    color: "#42d8ff",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '农转用无法调整'
+                    }
+                  },
+                  规划未确定或调整: {
+                    color: "#f7a53f",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '规划未确定或调整'
+                    }
+                  },
+                  已批未征: {
+                    color: "#63befb",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '已批未征'
+                    }
+                  },
+                  手续未完善: {
+                    color: "#238cff",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '手续未完善'
+                    }
+                  },
+                  政府储备土地: {
+                    color: "#6e4dff",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '政府储备土地'
+                    }
+                  },
+                  供地前期工作: {
+                    color: "#32b200",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '供地前期工作'
+                    }
+                  },
+                  零星难利用: {
+                    color: "#ffca28",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '零星难利用'
+                    }
+                  },
+                  项目未落实: {
+                    color: "#3afff8",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '项目未落实'
+                    }
+                  },
+                  待认定: {
+                    color: "#fe877b",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '待认定'
+                    }
+                  },
+                  其他: {
+                    color: "#3e6af7",
+                    query: {
+                      'ECGAP_LANDUSE.PEWG.WGYY_XL': '其他'
+                    }
+                  },
+                }
+              }
+            },
+            {
+              id: "yh-dxyd",
+              name: "低效用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer2/arcgis/rest/services/ZDZY/dcqtb_2022/MapServer",
+              legend: {
+                title: "低效用地",
+                defs: {
+                  低效用地: {
+                    color: "rgb(170, 0, 130)",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "yh-ssmj",
+              name: "空间规划_实施面积",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              zIndex: 999,
+              params: {
+                layers: "show:4,5"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/JSYD_YH/MapServer",
+              legend: {
+                title: "实施面积",
+                defs: {
+                  实施面积: {
+                    color: "#EFA31B",
+                    query: {}
+                  }
+                }
+              }
+            },
+            //===========
+            {
+              id: "yh-ghjsyd",
+              name: "规划建设用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GHJSYD_YH/MapServer",
+              legend: {
+                title: "规划建设用地",
+                defs: {
+                  可用建设用地: {
+                    color: "#F0F270",
+                    query: {}
+                  },
+                  已实施建设用地: {
+                    color: "#EFA31B",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "yh-kfqd",
+              name: "开发边界内开发强度",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/KFBJ_JSYD/MapServer"
+            },
+            {
+              id: "gyyddc",
+              name: "低效工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url:
+                "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/GYYDDC/ZJGYYDDCNEW/MapServer",
+            },
+            {
+              id: "yh-kyjsyd",
+              name: "可用建设用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:2,3",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/JSYD_YH/MapServer",
+              legend: {
+                title: "可用建设用地",
+                defs: {
+                  可用建设用地: {
+                    color: "#F0F270",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "yh-ghgyyd",
+              name: "规划工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/GHGYYD_YH/MapServer",
+              legend: {
+                title: "规划工业用地",
+                defs: {
+                  可用工业用地: {
+                    color: "#F0F270",
+                    query: {}
+                  },
+                  已实施工业用地: {
+                    color: "#D6A242",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "yh-yssgyyd",
+              name: "已实施工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:10,11",
+                layerDefs: {
+                  "10": "1 = 1 ",
+                  "11": "1 = 1 ",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/JSYD_YH/MapServer",
+              legend: {
+                title: "已实施工业用地",
+                defs: {
+                  已实施工业用地: {
+                    color: "#FF5500",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "yh-kygyyd",
+              name: "可用工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:6,7",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/JSYD_YH/MapServer",
+              legend: {
+                title: "可用工业用地",
+                defs: {
+                  可用工业用地: {
+                    color: "#FFFF73",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "yh-hyfb",
+              name: "余杭行业分布",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/HYFL_YH/MapServer",
+            },
+            {
+              id: "yh-mjpj",
+              name: "余杭亩均评价",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/MJPJ_YH_ALL/MapServer",
+              legend: {
+                title: "亩均评价",
+                defs: {
+                  亩均高效: {
+                    color: "#30BDFF",
+                    query: {}
+                  },
+                  亩均低效: {
+                    color: "#FF689C",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "xzqh-x-new",
+              name: "县级行政区",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              url:
+                "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/zp/XZQ_XJ/MapServer"
+            },
+            {
+              id: "shq-zzyd",
+              name: "住宅用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:10,11",
+
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/SHYS_SWFZ_all/MapServer",
+              legend: {
+                title: "住宅用地",
+                defs: {
+                  住宅用地圈外: {
+                    color: "#FFD073",
+                    query: {}
+                  },
+                  住宅用地圈内: {
+                    color: "#2394F2",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "wmqy",
+              name: "万亩千亿",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/YS_WMQY/MapServer",
+              legend: {
+                title: "万亩千亿",
+                defs: {
+                  万亩千亿: {
+                    color: "#BFFFE8",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "ydys",
+              name: "用地预审",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/BDGJ_YS/MapServer",
+              legend: {
+                title: "用地预审",
+                defs: {
+                  用地预审: {
+                    color: "#FF7F7F",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "ydsp2022",
+              name: "2022百大攻坚",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BDGJ_BP_2022/MapServer",
+              legend: {
+                title: "2022百大攻坚",
+                defs: {
+                  '2022百大攻坚': {
+                    color: "#03FFC4",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "ydsp2023",
+              name: "2023百大攻坚",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/YSYBZ/BDGJ_BP/MapServer",
+              legend: {
+                title: "2023百大攻坚",
+                defs: {
+                  '2023百大攻坚': {
+                    color: "#03FFC4",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "gd",
+              name: "供地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "1=1",
+                  "1": "1=1"
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/ZDZY/TDGY2022/MapServer",
+              legend: {
+                title: "供地",
+                defs: {
+                  供地: {
+                    color: "#03FFC4",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "gd-gyyd",
+              name: "工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "tdyt like '06%'",
+                  "1": "tdyt like '06%'"
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer3/arcgis/rest/services/ZDZY/TDGY2022/MapServer",
+              legend: {
+                title: "工业用地",
+                defs: {
+                  工业用地: {
+                    color: "#03FFC4",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "tsxz",
+              name: "特色小镇",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/TSXZ/MapServer",
+              legend: {
+                title: "特色小镇",
+                defs: {
+                  高端装备制造: {
+                    color: "#4ADEFF",
+                    query: {}
+                  },
+                  金融: {
+                    color: "#FFE383",
+                    query: {}
+                  },
+                  金融产业: {
+                    color: "#36FFB6",
+                    query: {}
+                  },
+                  数字经济: {
+                    color: "#FFBD88",
+                    query: {}
+                  },
+                  健康产业: {
+                    color: "#FF95E6",
+                    query: {}
+                  },
+                  历史经典: {
+                    color: "#C9FF60",
+                    query: {}
+                  },
+                  历史经典产业: {
+                    color: "#A0ABFF",
+                    query: {}
+                  },
+                  旅游: {
+                    color: "#FE7777",
+                    query: {}
+                  },
+                  旅游产业: {
+                    color: "#E08046",
+                    query: {}
+                  },
+                  时尚产业: {
+                    color: "#479EFF",
+                    query: {}
+                  },
+                  环保产业: {
+                    color: "#1DFD52",
+                    query: {}
+                  },
+
+
+                }
+              }
+            },
+            {
+              id: "nzy",
+              name: "农转用",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              params: {
+                layers: "show:0",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/gtkj/SZSW/87521884b4e842a3afdef80d6b86f1ab/arcgis/rest/services/GCS330000_3003_JSYDBP/GCS330000_3003_JSYDBP_NZYDK_TT_202010311733/MapServer",
+              legend: {
+                title: "农转用",
+                defs: {
+                  农转用: {
+                    color: "#FE0102",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "zrzy-gd",
+              name: "耕地",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              params: {
+                layers: "show:0",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/gtkj-zjzwfw/proxy/GDPProxy79/6752291d133641e89309a93873721eec/arcgis/rest/services/GCS330000_1002_GTBGDC_XSB/GCS330000_1002_GTBGDC_GD/MapServer",
+              legend: {
+                title: "耕地",
+                defs: {
+                  耕地: {
+                    color: "#FFD966",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "zrzy-czgk",
+              name: "城镇村及工矿用地",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              params: {
+                layers: "show:0",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/gtkj-zjzwfw/proxy/GDPProxy80/a9c6f843308f41d8836a208ed758049b/arcgis/rest/services/GCS330000_1002_GTBGDC_XSB/GCS330000_1002_GTBGDC_CZCJGKYD/MapServer",
+              legend: {
+                title: "城镇村及工矿用地",
+                defs: {
+                  城镇村及工矿用地: {
+                    color: "#FF4D80",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "zrzy-sd",
+              name: "湿地",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              params: {
+                layers: "show:0",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/gtkj-zjzwfw/proxy/GDPProxy69/a714600741ec4b0f87004dc0a499f109/arcgis/rest/services/GCS330000_1002_GTBGDC_XSB/GCS330000_1002_GTBGDC_SD/MapServer",
+              legend: {
+                title: "湿地",
+                defs: {
+                  湿地: {
+                    color: "#CCFFE5",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "zrzy-cd",
+              name: "草地",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              params: {
+                layers: "show:0",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/gtkj-zjzwfw/proxy/GDPProxy81/c2ac93ac28f24c668059208b4d5810ab/arcgis/rest/services/GCS330000_1002_GTBGDC_XSB/GCS330000_1002_GTBGDC_CD/MapServer",
+              legend: {
+                title: "草地",
+                defs: {
+                  草地: {
+                    color: "#D8FF99",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "tsxz-yhrgznxz",
+              name: "特色小镇-余杭人工智能小镇",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show: 100",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/JSYD_YHTSXZ/MapServer",
+              legend: {
+                title: "建设空间分析",
+                defs: {
+                  已实施: {
+                    color: "#EFA309",
+                    query: {}
+                  },
+                  可用: {
+                    color: "#EFF071",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "stbhhx",
+              name: "生态保护红线",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              params: {
+                layers: "show: 0",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/gtkj-zjzwfw/proxy/GDPProxy50/d5d85202b0cc4ce594577c52cbd1e08f/arcgis/rest/services/GCS330000_2001_SQSX_2022/GCS330000_2001_STBHHX_2022/MapServer",
+              legend: {
+                title: "生态保护红线",
+                defs: {
+                  生态保护红线: {
+                    color: "#55FF00",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "yjjbnt",
+              name: "永久基本农田",
+              enabled: true,
+              visible: false,
+              serverType: "ArcGISTile",
+              params: {
+                layers: "show: 0",
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/gtkj-zjzwfw/proxy/GDPProxy54/c88f3f1d377b4292a41e0f039699630c/arcgis/rest/services/GCS330000_2001_SQSX_2022/GCS330000_2001_YJJBNT_2022/MapServer",
+              legend: {
+                title: "永久基本农田",
+                defs: {
+                  永久基本农田: {
+                    color: "#FFD966",
+                    query: {}
+                  },
+                }
+              }
+            },
+
+            {
+              id: "gyydyh",
+              name: "工业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "ydlx = '工业用地'",
+                  "1": "ydlx = '工业用地'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/DLTB_YHJJKFQ/MapServer",
+              legend: {
+                title: "工业用地",
+                defs: {
+                  工业用地: {
+                    color: "#FF7F7F",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "zzydyh",
+              name: "住宅用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "ydlx = '住宅用地'",
+                  "1": "ydlx = '住宅用地'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/DLTB_YHJJKFQ/MapServer",
+              legend: {
+                title: "住宅用地",
+                defs: {
+                  住宅用地: {
+                    color: "#FFD380",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "syydyh",
+              name: "商业用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "ydlx = '商业用地'",
+                  "1": "ydlx = '商业用地'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/DLTB_YHJJKFQ/MapServer",
+              legend: {
+                title: "商业用地",
+                defs: {
+                  商业用地: {
+                    color: "#03FFC4",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "qtjsydyh",
+              name: "其他建设用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "ydlx = '其他建设用地'",
+                  "1": "ydlx = '其他建设用地'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/DLTB_YHJJKFQ/MapServer",
+              legend: {
+                title: "其他建设用地",
+                defs: {
+                  其他建设用地: {
+                    color: "#FFAA01",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "nydyh",
+              name: "农用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "ydlx = '农用地'",
+                  "1": "ydlx = '农用地'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/DLTB_YHJJKFQ/MapServer",
+              legend: {
+                title: "农用地",
+                defs: {
+                  农用地: {
+                    color: "#65CDAD",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "wlydyh",
+              name: "未利用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1",
+                layerDefs: {
+                  "0": "ydlx = '未利用地'",
+                  "1": "ydlx = '未利用地'",
+                }
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/DLTB_YHJJKFQ/MapServer",
+              legend: {
+                title: "未利用地",
+                defs: {
+                  未利用地: {
+                    color: "#FF73DF",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "qlzyyh",
+              name: "潜力资源",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/QLZY_YHJJKFQ/MapServer",
+              legend: {
+                title: "潜力资源",
+                defs: {
+                  潜力资源: {
+                    color: "#FFAA01",
+                    query: {}
+                  }
+                }
+              }
+            },
+            {
+              id: "hyfbyh",
+              name: "行业分布",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/YHJJKFQ_HY/MapServer/",
+            },
+            {
+              id: "mjpjyh",
+              name: "行业分布",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/YHJJKFQ_PJ/MapServer",
+              legend: {
+                title: "亩均评价",
+                defs: {
+                  亩均高效: {
+                    color: "#0070FF",
+                    query: {}
+                  },
+                  亩均低效: {
+                    color: "#E60001",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-dkgl",
+              name: "滨江地块管理",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJ_DKGL/MapServer",
+              legend: {
+                title: "管地单位",
+                defs: {
+                  区城管局: {
+                    color: "rgba(255, 190, 190, 255)",
+                    query: {}
+                  },
+                  城建发展公司: {
+                    color: "rgba(255, 211, 127, 255)",
+                    query: {}
+                  },
+                  "城建发展公司;智慧新天地": {
+                    color: "rgba(255, 211, 127, 255)",
+                    query: {}
+                  },
+                  建管中心: {
+                    color: "rgba(80, 20, 173, 255)",
+                    query: {}
+                  },
+                  智慧新天地: {
+                    color: "rgba(255, 127, 127, 255)",
+                    query: {}
+                  },
+                  浦沿街道: {
+                    color: "rgba(255, 115, 223, 255)",
+                    query: {}
+                  },
+                  滨江环境公司: {
+                    color: "rgba(230, 76, 0, 255)",
+                    query: {}
+                  },
+                  "滨江环境公司;长河街道": {
+                    color: "rgba(0, 255, 197, 255)",
+                    query: {}
+                  },
+                  物联网: {
+                    color: "rgba(0, 112, 255, 255)",
+                    query: {}
+                  },
+                  "物联网/滨江环境公司": {
+                    color: "rgba(0, 112, 255, 255)",
+                    query: {}
+                  },
+                  白马湖创意城: {
+                    color: "rgba(197, 0, 255, 255)",
+                    query: {}
+                  },
+                  西兴街道: {
+                    color: "rgba(85, 255, 0, 255)",
+                    query: {}
+                  },
+                  资产经营公司: {
+                    color: "rgba(255, 0, 0, 255)",
+                    query: {}
+                  },
+                  "资产经营公司/长河街道": {
+                    color: "rgba(0, 255, 197, 255)",
+                    query: {}
+                  },
+                  长河街道: {
+                    color: "rgba(0, 255, 197, 255)",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-xz",
+              name: "滨江小镇",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJXZ/MapServer",
+              legend: {
+                title: "滨江小镇",
+                defs: {
+                  小镇: {
+                    color: "red",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-stbhhx",
+              name: "滨江生态保护红线",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJSQSX/MapServer",
+              legend: {
+                title: "滨江生态保护红线",
+                defs: {
+                  保护红线: {
+                    color: "#00A57D",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-czkfbj",
+              name: "滨江城镇开发边界",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:2,3"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJSQSX/MapServer",
+              legend: {
+                title: "滨江城镇开发边界",
+                defs: {
+                  开发边界: {
+                    color: "#FF0064",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-kfbjw",
+              name: "滨江城镇开发边界外",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJ_KFBJW/MapServer",
+              legend: {
+                title: "滨江城镇开发边界外",
+                defs: {
+                  开发边界外: {
+                    color: "#FFFF2D",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-ld",
+              name: "滨江林地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJLD/MapServer",
+              legend: {
+                title: "滨江林地",
+                defs: {
+                  滨江林地: {
+                    color: "#64AF64",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-gd",
+              name: "滨江耕地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJGD/MapServer",
+              legend: {
+                title: "滨江耕地",
+                defs: {
+                  滨江耕地: {
+                    color: "#F5F8DC",
+                    query: {}
+                  },
+                }
+              }
+            },
+            {
+              id: "bj-lsyd",
+              name: "滨江临时用地",
+              enabled: true,
+              visible: false,
+              serverType: "dynamic",
+              params: {
+                layers: "show:0,1"
+              },
+              url: "https://zlzd.zrzyt.zj.gov.cn/arcMapServer216/arcgis/rest/services/YSYBZ/BJLSYD/MapServer",
+              legend: {
+                title: "滨江临时用地",
+                defs: {
+                  滨江临时用地: {
+                    color: "#9999FF",
+                    query: {}
+                  },
+                }
+              }
+            },
+          ]
+        }
+      ]
+    },
+    outerNet: {
+      view: {
+        center: [120.50451781233137, 27.842990408642258],
+        zoom: 11.33,
+        // extent: [], // 限制视图的范围,此范围之外的任何内容都不能在地图上看到。
+        fitExtent: [
+          119.93054011309823,
+          27.58795490358181,
+          121.24821284259042,
+          28.05212726686306
+        ],
+        minZoom: 7,
+        maxZoom: 21
+      },
+      layers: [
+        {
+          id: "jcdl", // id 一经指定,切勿轻易修改
+          name: "基础地理",
+          enabled: true, // 是否启用,启用才会显示在页面中
+          expand: false, // 是否展开折叠
+          visible: true, // 是否显示子图层
+          base: true, // 是否底图,底图 在 设置 visible-layer-ids 时会跳过,向下传递
+          opacity: 1, // 图层透明度,取值0~1或false,false禁用透明度调节功能,可选配置
+          hidden: false, // 只在 layerTree 组件里面不显示,代码上依旧能获取到,可选配置
+          children: [
+            {
+              id: "tdt",
+              name: "天地图",
+              enabled: true,
+              expand: false,
+              visible: true,
+              children: [
+                {
+                  id: "tdtsl",
+                  name: "天地图-矢量",
+                  enabled: true,
+                  visible: true,
+                  serverType: "tdtxyz",
+                  url:
+                    "http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=d8c6e3fba331097a5bd07e4c42f55d4a"
+                },
+                {
+                  id: "tdtyx",
+                  name: "天地图-影像",
+                  enabled: true,
+                  visible: true,
+                  serverType: "tdtxyz",
+                  url:
+                    "http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=d8c6e3fba331097a5bd07e4c42f55d4a"
+                },
+                {
+                  id: "tdtzj",
+                  name: "天地图-注记",
+                  enabled: true,
+                  visible: true,
+                  serverType: "tdtxyz",
+                  url:
+                    "http://t0.tianditu.gov.cn/DataServer?T=cva_w&X={x}&Y={y}&L={z}&tk=d8c6e3fba331097a5bd07e4c42f55d4a"
+                }
+              ]
+            }
+          ]
+        },
+        {
+          id: "dktc",
+          name: "图层服务",
+          enabled: true,
+          expand: true,
+          visible: false,
+          children: [
+            {
+              id: "xzqh",
+              name: "行政区划",
+              enabled: true,
+              expand: false,
+              visible: false,
+              children: [
+                {
+                  id: "xzqh-s",
+                  name: "市级行政区",
+                  enabled: true,
+                  visible: false,
+                  serverType: "dynamic",
+                  url:
+                    "/arcMapServer/tdcsservices/arcgis/rest/services/zp/XZQ_SJ/MapServer"
+                },
+                {
+                  id: "xzqh-x",
+                  name: "县级行政区",
+                  enabled: true,
+                  visible: false,
+                  serverType: "dynamic",
+                  url:
+                    "/arcMapServer/tdcsservices/arcgis/rest/services/zp/XZQ_XJ/MapServer"
+                },
+                {
+                  id: "xzqh-z",
+                  name: "镇级行政区",
+                  enabled: true,
+                  visible: false,
+                  serverType: "dynamic",
+                  url:
+                    "/arcMapServer/tdcsservices/arcgis/rest/services/zp/XZQ_ZJ/MapServer"
+                }
+              ]
+            }
+          ]
+        }
+      ]
+    }
+  },
+  mockData: {
+    yhLandInfo: {
+      gyyd: 34211,
+      ss: 325.62,
+      mjss: 95.18,
+      ss_after: 333.76,
+      mjss_after: 97.56,
+      add_ss: 8.13,
+      add_mjss: 2.38,
+    },
+    yhMjxyData: {
+      mjgx: 1.25,
+      mjdx: 2.17
+    }
+  }
+
+
+};

+ 1 - 0
BJYSYBZ_C/src/views/WlydtbView/components/FourContent.vue

@@ -364,6 +364,7 @@ export default {
     },
     xzClick(item) {
       this.$vm.$emit("setGdDetailType", 20);
+      this.$vm.$emit('getGdDetailData', item);
       this.$vm.$emit("location-feature-where", { layerId: 'bj-wlyd', where: `dkbh = '${item.dkbh}'`, setting: {outFields: 'dkbh,ssqx,ssjd,mj'} })
       this.$emit('clickCallback', item)
     },

+ 6 - 1
BJYSYBZ_C/src/views/WlydtbView/components/Xxxx.vue

@@ -74,6 +74,7 @@
           <td>
             <el-radio-group v-model="obj.sfygd">
               <el-radio label="是">是</el-radio>
+              <el-radio label="否">否</el-radio>
             </el-radio-group>
           </td>
         </tr>
@@ -417,10 +418,14 @@ export default {
         id: this.obj.id
       };
       this.$ajax.get(urlApi, params, this, false).then(resp => {
-        let { data, success } = resp
+        const { data, success } = resp
         success && this.$message.success("保存成功")
         success || this.$message.error("操作繁忙")
         this.$emit('detailClose', true)
+        const _obj = {};
+        Object.assign(_obj, this.obj);
+        this.$vm.$emit("setGdDetailType", 20);
+        this.$vm.$emit('getGdDetailData', _obj);
       });
     },
     resetObj() {

+ 0 - 1
BJYSYBZ_C/src/views/WlydtbView/components/YqxqMap.vue

@@ -87,7 +87,6 @@ export default {
       this.$router.go(-1)
     },
     changeAreaHandle(val){
-      console.log(val);
       if (val[1]=='330110'){
         this.$router.push({
           path: 'qyfx',

+ 5 - 2
BJYSYBZ_C/src/views/WlydxqView/components/FourContent.vue

@@ -309,7 +309,7 @@ export default {
       this.config.page.count = size;
       this.getTsxzListData();
     },
-    xzClick(item) {
+    xzClick (item) {
       this.$emit('clickCallback', item)
       this.$vm.$emit("setGdDetailType", 20);
       this.$vm.$emit("location-feature-where", { layerId: 'bj-wlyd', where: `dkbh = '${item.dkbh}'`, setting: {outFields: 'dkbh,ssqx,ssjd,mj'} })
@@ -360,7 +360,10 @@ export default {
       if (this.query.name) {
         refreshP += ` and dkbh = '${this.query.name}'`
       }
-      this.$vm.$emit("changeLayer", {id: "bj-wlyd",param: refreshP,layerIdx1: 0,layerIdx2: 1})
+      setTimeout(() => {
+        this.$vm.$emit("updateLayer", { id: "bj-wlyd", param: refreshP, layerIdx: 'ysybz:bjwlyd2000' })
+        this.$vm.$emit('change-layer')
+      }, 200)
     },
     initHZ() {
       let p = {

+ 0 - 14
BJYSYBZ_C/src/views/WlydxqView/components/YqxqMap.vue

@@ -19,20 +19,6 @@ export default {
   name: "TsxzMap",
   components: {BigScreenMap},
   mounted() {
-    this.$vm.$on("changeLayer", payload => {
-      const {id,param,layerIdx1,layerIdx2} = payload
-      let params={
-          // layers: `show:${layerIdx1},${layerIdx2}`,
-          layerDefs: {
-            [layerIdx1]: param,
-            [layerIdx2]: param
-          }
-        }
-      let layer = this.$refs.arcMapRef.getLayerById(id)
-      layer.setVisible(true)
-      const source = layer.getSource()
-      source.updateParams(params)
-    });
     this.$vm.$emit("setGdDetailType", 20);
     this.changeXzq()
     //监听图层改变事件

+ 7 - 17
BJYSYBZ_C/src/views/components/BigScreenMap/index.vue

@@ -225,9 +225,9 @@
           </div>
 
           <div class="content" v-if="detailType == 20">
-            <h2>{{ props["dkbh"] }}</h2>
-            <p>行政区划:{{ props["ssqx"] }} - {{ props["ssjd"] }}</p>
-            <p>面积:{{ (props["mj"] * 15).toFixed(2) }} 亩</p>
+            <h2>{{ detailData["dkbh"] }}</h2>
+            <p>行政区划:{{ detailData["ssqx"] }} - {{ detailData["ssjd"] }}</p>
+            <p>面积:{{ (detailData["mj"] * 15).toFixed(2) }} 亩</p>
           </div>
           <div class="content" v-if="detailType == 21">
             <h2>{{ props["tdqlr"] }}</h2>
@@ -561,23 +561,13 @@ export default {
         this.map.getView().setZoom(_initZoom);
       }, 200);
     }
-    this.$vm.$on("updateLayer", (payload) => {
-      const { id, param, layerIdx1, layerIdx2 } = payload;
+    this.$vm.$on('updateLayer', (payload) => {
+      const { id, param, layerIdx } = payload;
       let params = {};
-      if (layerIdx2 != null) {
-        params = {
-          layerDefs: {
-            [layerIdx1]: param,
-            [layerIdx2]: param,
-          },
-        };
-      } else {
         params = {
-          layerDefs: {
-            [layerIdx1]: param,
-          },
+          layers: layerIdx,
+          cql_filter: param,
         };
-      }
       let layer = this.getLayerById(id);
       layer.setVisible(true);
       const source = layer.getSource();

+ 2 - 0
BJYSYBZ_S/src/main/java/com/zjugis/ysgzybz/dao/YbzBJDao.java

@@ -21,6 +21,8 @@ public interface YbzBJDao {
     /** 保存未利用地信息 **/
     void saveWlydById(WlydDTO dto);
 
+    void removeWlydById(WlydDTO dto);
+
     /** 导出未利用地excel **/
     List<WlydExcelDO> getWlydExcelList(CommonDTO dto);
 

+ 5 - 0
BJYSYBZ_S/src/main/java/com/zjugis/ysgzybz/service/impl/YbzBJService.java

@@ -6,6 +6,7 @@ import com.alibaba.excel.write.metadata.WriteSheet;
 import com.alibaba.excel.write.style.HorizontalCellStyleStrategy;
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.serializer.SerializerFeature;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.vividsolutions.jts.geom.Geometry;
 import com.vividsolutions.jts.io.ParseException;
@@ -51,6 +52,10 @@ public class YbzBJService {
 
     /** 保存未利用地信息 **/
     public void saveWlydById(WlydDTO dto) {
+        if("是".equals(dto.getSfygd())){
+            dao.removeWlydById(dto);
+            return;
+        }
         dao.saveWlydById(dto);
     }
 

+ 4 - 4
BJYSYBZ_S/src/main/resources/application-tinker.yml

@@ -3,8 +3,8 @@ spring:
     postgre:
       type: com.alibaba.druid.pool.DruidDataSource
       driver-class-name: org.postgresql.Driver
-      url: jdbc:postgresql://10.249.3.61:5432/sde
-      username: sde
+      url: jdbc:postgresql://10.249.168.231:54321/sde?currentSchema=sde
+      username: zjugis
       password: zjugis1402!
       initialSize: 1
       minIdle: 3
@@ -31,8 +31,8 @@ spring:
     oracle51:
       type: com.alibaba.druid.pool.DruidDataSource
       driver-class-name: org.postgresql.Driver
-      url: jdbc:postgresql://10.249.3.61:5432/sde
-      username: sde
+      url: jdbc:postgresql://10.249.168.231:54321/sde?currentSchema=ysybz
+      username: zjugis
       password: zjugis1402!
       initialSize: 1
       minIdle: 3

+ 7 - 0
BJYSYBZ_S/src/main/resources/mapper/YbzBJMapper.xml

@@ -23,6 +23,13 @@
         where dkbh = #{dkbh}
     </select>
 
+    <delete id="removeWlydById" parameterType="com.zjugis.ysgzybz.domain.dto.WlydDTO">
+        delete
+        from
+        sde.gdxminfo_bj
+        where dkbh = #{dkbh}
+    </delete>
+
     <select id="saveWlydBaseById" parameterType="com.zjugis.ysgzybz.domain.dto.WlydDTO">
         update
         sde.bjwlyd2000