派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-02-22 0e9c7f99a32785953cd155299275584c00097c96
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
// import * as L from 'leaflet'
import { LayerSewers } from './LayerSewers'
// const APP_GIS_HOST = 'http://xearth.cn:6299'
 
// 几何类型常量
const GEOM_POINT = 'POINT'
 
export const ServiceLayers = [
  /*    {
        code: 'pipeline',
        name: '管网数据',
        icon_actived: '',
        icon_deactived: '',
        type: 'wms',
        // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1',
        url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLine/wms?version=1.1.1',
        inLegend: true,
        checked: true,
        option: {
          layers: 'all',
          styles: '', // Comma-separated list of WMS styles.
          format: 'image/png', // WMS image format (use 'image/png' for layers with transparency).
          transparent: true, // If true, the WMS service will return images with transparency.
          version: '1.1.1', // Version of the WMS service to use
          tileSize: L.point(256, 256),
          crs: L.CRS.EPSG4326, // Coordinate Reference System to use for the WMS requests, defaults to map CRS. Don't change this if you're not sure what it means.
          uppercase: false,
          WMSTILE: 1
        }, */
  LayerSewers
 
]
 
export const PointLayers = [
  {
    code: 'fsss',
    name: '附属设施',
    checked: true, // 默认选中状态
    filters: [
      {
        code: 'fourlink',
        name: '四通',
        sname: '四通',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'tee',
        name: '三通',
        sname: '三通',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'piperack',
        name: '管架(墩)',
        sname: '管架',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'pipegallery',
        name: '管廊(带)',
        sname: '管廊',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'pipesegment',
        name: '流向',
        sname: '流向',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'pipeline',
        name: '管网',
        sname: '管网',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'valve',
        name: '阀门',
        sname: '阀门',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'elbow',
        name: '弯头',
        sname: '弯头',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      }
    ]
  },
  {
    code: 'hbss',
    name: '环保设施',
    checked: true, // 默认选中状态
    filters: [
      {
        code: 'manhole',
        name: '窨井',
        sname: '窨井',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'firedike',
        name: '防火堤',
        sname: '防火堤',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'raingate',
        name: '雨篦子',
        sname: '雨篦子',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'overflowweir',
        name: '溢流堰',
        sname: '溢流堰',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'chokevalve',
        name: '截流闸',
        sname: '截流闸',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'collectingbasin',
        name: '集水池(罐)',
        sname: '集水池',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'oilseparator',
        name: '隔油池',
        sname: '隔油池',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      }
    ]
  },
  {
    code: 'pk',
    name: '排口',
    checked: true, // 默认选中状态
    filters: [
      {
        code: 'dischargeport',
        name: '排放口',
        sname: '排放口',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      }
    ]
  },
  {
    code: 'qyxx',
    name: '区域信息',
    checked: true, // 默认选中状态
    filters: [
      {
        code: 'thirdpartypipe',
        name: '第三方管道',
        sname: '第三方管道',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'firefightingunit',
        name: '消防单位',
        sname: '消防单位',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'emergencyesources',
        name: '应急物资',
        sname: '应急物资',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'emergencyres',
        name: '社会专业应急救援队伍',
        sname: '专业应急救援',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'maintenanceteam',
        name: '维抢修队伍',
        sname: '维抢修队伍',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'hospital',
        name: '医院',
        sname: '医院',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'pointpreservationzone',
        name: '自然保护区',
        sname: '自然保护区',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'pointhydrology',
        name: '水体',
        sname: '水体',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'sensitivetarget',
        name: '敏感目标',
        sname: '敏感目标',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'envmonunit',
        name: '环境监测单位',
        sname: '环境监测单位',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'pointcontaminants',
        name: '监测点污染物指标信息',
        sname: '污染物指标',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'dischargeportaround',
        name: '排放口周边环境敏感信息',
        sname: '排放口周边环境',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'pump',
        name: '泵',
        sname: '泵',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'liquidlevelmeter',
        name: '液位计',
        sname: '液位计',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'flowmeter',
        name: '流量计',
        sname: '流量计',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'video',
        name: '视频监控配置',
        sname: '视频监控',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'onlinemonitoring',
        name: '在线监测设备配置',
        sname: '在线监测',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'combustiblegas',
        name: '可燃气体报警设备配置',
        sname: '可燃气体报警',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'hydrogensulfide',
        name: 'H2S浓度报警设备配置',
        sname: 'H2S浓度报警',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'controlpoint',
        name: '管线点',
        sname: '管线点',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      },
      {
        code: 'pipesegment',
        name: '管段',
        sname: '管段',
        checked: true, // 默认选中状态
        geom: GEOM_POINT
      }
    ]
  }
]