派生自 wuyushui/SewerAndRainNetwork

zhangshuaibao
2021-03-17 d9b89e0520d29ffdf1775b4f2d87fc45db2b0bf5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
 * 废水图层
 * @type {string}
 */
const APP_GIS_HOST_2 = 'http://xearth.cn:6289'
export const LayerWasteWater = {
  code: 'pipeline',
  name: '废水',
  type: 'geojson',
  // url: APP_GIS_HOST_2 + '/server/ogcserver/PipeLineTest/wms?version=1.1.1',
  // url: APP_GIS_HOST_2 + '/layer/findLayer?layerName={sname}',
  url: APP_GIS_HOST_2 + '/server/ogcserver/PipeLine/wfs?version=1.0.0&TYPENAME={sname}&REQUEST=getfeature&OUTPUTFORMAT=json&maxFeatures=20000',
  checked: true,
  layers: [
    {
      code: 'rainline',
      name: '企业',
      sname: '企业', // 表名
      checked: true, // 默认选中状态
      filter: {},
      minZoom: 10, // 在指定级别显示
      childLayer: 'fsss,hbss' // 关联PointLayers
    },
    {
      code: 'oilline',
      name: '监测点',
      sname: '监测点',
      checked: true, // 默认选中状态
      filter: {},
      minZoom: 10,
      childLayer: 'fsss,hbss' // 关联PointLayers
    },
    {
      code: 'saltline',
      name: '排放口',
      sname: '排放口',
      checked: true, // 默认选中状态
      filter: {},
      minZoom: 10,
      childLayer: 'fsss,hbss' // 关联PointLayers
    }
  ]
}