@vtx/cs-map-layer 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/package.json +1 -1
  2. package/lib/ConfluenceLineLayer/index.d.ts +0 -4
  3. package/lib/ConfluenceLineLayer/index.js +0 -51
  4. package/lib/ConfluenceManholeLayer/index.d.ts +0 -4
  5. package/lib/ConfluenceManholeLayer/index.js +0 -51
  6. package/lib/ConfluencePointLayer/index.d.ts +0 -4
  7. package/lib/ConfluencePointLayer/index.js +0 -51
  8. package/lib/DeviceLayer/index.d.ts +0 -11
  9. package/lib/DeviceLayer/index.js +0 -155
  10. package/lib/DivisionLayer/index.d.ts +0 -4
  11. package/lib/DivisionLayer/index.js +0 -26
  12. package/lib/FacilityLayer/index.d.ts +0 -13
  13. package/lib/FacilityLayer/index.js +0 -72
  14. package/lib/Layer/index.d.ts +0 -5
  15. package/lib/Layer/index.js +0 -105
  16. package/lib/Layer/layerConfig.d.ts +0 -82
  17. package/lib/Layer/layerConfig.js +0 -370
  18. package/lib/RainLineLayer/index.d.ts +0 -4
  19. package/lib/RainLineLayer/index.js +0 -51
  20. package/lib/RainManholeLayer/index.d.ts +0 -4
  21. package/lib/RainManholeLayer/index.js +0 -51
  22. package/lib/RainPointLayer/index.d.ts +0 -4
  23. package/lib/RainPointLayer/index.js +0 -51
  24. package/lib/RawWaterLineLayer/index.d.ts +0 -4
  25. package/lib/RawWaterLineLayer/index.js +0 -57
  26. package/lib/RawWaterPointLayer/index.d.ts +0 -4
  27. package/lib/RawWaterPointLayer/index.js +0 -57
  28. package/lib/SewageLineLayer/index.d.ts +0 -4
  29. package/lib/SewageLineLayer/index.js +0 -51
  30. package/lib/SewageManholeLayer/index.d.ts +0 -4
  31. package/lib/SewageManholeLayer/index.js +0 -51
  32. package/lib/SewagePointLayer/index.d.ts +0 -4
  33. package/lib/SewagePointLayer/index.js +0 -51
  34. package/lib/WaterDrainLineLayer/index.d.ts +0 -4
  35. package/lib/WaterDrainLineLayer/index.js +0 -50
  36. package/lib/WaterDrainManholeLayer/index.d.ts +0 -4
  37. package/lib/WaterDrainManholeLayer/index.js +0 -50
  38. package/lib/WaterDrainPointLayer/index.d.ts +0 -4
  39. package/lib/WaterDrainPointLayer/index.js +0 -50
  40. package/lib/WaterSupplyLineLayer/index.d.ts +0 -4
  41. package/lib/WaterSupplyLineLayer/index.js +0 -91
  42. package/lib/WaterSupplyPointLayer/index.d.ts +0 -8
  43. package/lib/WaterSupplyPointLayer/index.js +0 -79
  44. package/lib/_components/Template/CloseBtn.d.ts +0 -8
  45. package/lib/_components/Template/CloseBtn.js +0 -21
  46. package/lib/_components/Template/CloseBtnV2.d.ts +0 -8
  47. package/lib/_components/Template/CloseBtnV2.js +0 -24
  48. package/lib/_components/Template/DeviceCustomContent.d.ts +0 -21
  49. package/lib/_components/Template/DeviceCustomContent.js +0 -96
  50. package/lib/_components/Template/DeviceTemplate.d.ts +0 -7
  51. package/lib/_components/Template/DeviceTemplate.js +0 -81
  52. package/lib/_components/Template/DeviceTemplateV2.d.ts +0 -7
  53. package/lib/_components/Template/DeviceTemplateV2.js +0 -151
  54. package/lib/_components/Template/FacilityCustomContent.d.ts +0 -20
  55. package/lib/_components/Template/FacilityCustomContent.js +0 -163
  56. package/lib/_components/Template/FacilityTemplate.d.ts +0 -12
  57. package/lib/_components/Template/FacilityTemplate.js +0 -100
  58. package/lib/_components/Template/FacilityTemplateV2.d.ts +0 -12
  59. package/lib/_components/Template/FacilityTemplateV2.js +0 -104
  60. package/lib/_components/Template/index.less +0 -10
  61. package/lib/_components/Template/indexV2.less +0 -567
  62. package/lib/_util/http.d.ts +0 -42
  63. package/lib/_util/http.js +0 -161
  64. package/lib/_util/interface.d.ts +0 -383
  65. package/lib/_util/interface.js +0 -110
  66. package/lib/_util/layerConfig.d.ts +0 -39
  67. package/lib/_util/layerConfig.js +0 -779
  68. package/lib/_util/transform.d.ts +0 -1
  69. package/lib/_util/transform.js +0 -111
  70. package/lib/_util/util.d.ts +0 -2
  71. package/lib/_util/util.js +0 -24
  72. package/lib/assets/address-dark.png +0 -0
  73. package/lib/assets/address.png +0 -0
  74. package/lib/index.d.ts +0 -22
  75. package/lib/index.js +0 -22
  76. package/lib/typings.d.ts +0 -4
@@ -1,82 +0,0 @@
1
- declare const layerConfig: ({
2
- name: string;
3
- id: string;
4
- children: ({
5
- type: string;
6
- id: string;
7
- popup: {
8
- version: string;
9
- };
10
- } | {
11
- type: string;
12
- id: string;
13
- popup?: undefined;
14
- })[];
15
- show?: undefined;
16
- } | {
17
- name: string;
18
- id: string;
19
- show: boolean;
20
- children: {
21
- type: string;
22
- show: boolean;
23
- }[];
24
- } | {
25
- name: string;
26
- id: string;
27
- show: boolean;
28
- children: {
29
- type: string;
30
- name: string;
31
- key: string;
32
- code: string;
33
- show: boolean;
34
- params: {
35
- STYLES: string;
36
- };
37
- group: {
38
- name: string;
39
- key: string;
40
- filter: string;
41
- show: boolean;
42
- legend: {
43
- icon: string;
44
- color: string;
45
- };
46
- }[];
47
- }[];
48
- } | {
49
- name: string;
50
- id: string;
51
- show: boolean;
52
- children: ({
53
- type: string;
54
- code: string;
55
- id: string;
56
- name: string;
57
- show: boolean;
58
- params: {
59
- key: string;
60
- operator: string;
61
- value: number;
62
- };
63
- styleOption: {
64
- icon: string;
65
- };
66
- } | {
67
- type: string;
68
- code: string;
69
- id: string;
70
- show: boolean;
71
- name: string;
72
- params: {
73
- key: string;
74
- operator: string;
75
- value: string;
76
- };
77
- styleOption: {
78
- icon: string;
79
- };
80
- })[];
81
- })[];
82
- export default layerConfig;
@@ -1,370 +0,0 @@
1
- /* type:类型 FacilityLayer-设施 DeviceLayer-设备 排水管点-WaterDrainPointLayer 排水管线-WaterDrainLineLayer 排水窨井-WaterSupplyPointLayer
2
- 视频-VideoLayer 行政区划-DivisionLayer 排水-雨水-管点-RainPointLayer 排水-雨水-管线-RainLineLayer 排水-雨水-窨井-RainManholeLayer
3
- 排水-污水-管点-SewagePointLayer 排水-污水-管线-SewageLineLayer 排水-污水-窨井-SewageManholeLayer 排水-合流-管点-ConfluencePointLayer
4
- 排水-合流-管线-ConfluenceLineLayer 排水-合流-窨井-ConfluenceManholeLayer 供水-管点-WaterSupplyPointLayer 供水-管线-WaterSupplyLineLayer
5
- 原水-管点-RawWaterPointLayer 原水-管线-RawWaterLineLayer
6
- 自定义图层-CustomLayer
7
- */
8
-
9
- var layerConfig = [{
10
- "name": "管网类型",
11
- "id": "GWLX",
12
- "children": [{
13
- "type": "SewageLineLayer",
14
- "id": "WSGW",
15
- "popup": {
16
- "version": "2"
17
- }
18
- }, {
19
- "type": "RainLineLayer",
20
- "id": "YSGW"
21
- }, {
22
- "type": "ConfluenceLineLayer",
23
- "id": "YWHL"
24
- }]
25
- }, {
26
- "name": "窨井",
27
- "id": "YJ",
28
- "show": false,
29
- "children": [{
30
- "type": "SewageManholeLayer",
31
- "show": false
32
- }, {
33
- "type": "RainManholeLayer",
34
- "show": false
35
- }, {
36
- "type": "ConfluenceManholeLayer",
37
- "show": false
38
- }]
39
- }, {
40
- "name": "管点",
41
- "id": "GD",
42
- "show": false,
43
- "children": [{
44
- "type": "RainPointLayer",
45
- "name": "雨水管点",
46
- "key": "YSJ",
47
- "code": "YSJ",
48
- "show": false,
49
- "params": {
50
- "STYLES": "zhsw_point"
51
- },
52
- "group": [{
53
- "name": "暗井",
54
- "key": "YSGD_AJ",
55
- "filter": "category = '1' and appendant = '40'",
56
- "show": false,
57
- "legend": {
58
- "icon": "YJ_JG",
59
- "color": "#00C159"
60
- }
61
- }, {
62
- "name": "泵站",
63
- "key": "YSGD_BZ",
64
- "filter": "category = '1' and appendant = '1'",
65
- "show": false,
66
- "legend": {
67
- "icon": "GD_BZ",
68
- "color": "#00C159"
69
- }
70
- }, {
71
- "name": "阀门",
72
- "key": "YSGD_FMJ",
73
- "show": false,
74
- "filter": "category = '1' and appendant = '5'",
75
- "legend": {
76
- "icon": "GD_FMJ",
77
- "color": "#00C159"
78
- }
79
- }, {
80
- "name": "检查井",
81
- "key": "YSGD_JCJ",
82
- "show": false,
83
- "filter": "category = '1' and appendant = '6'",
84
- "legend": {
85
- "icon": "GD_JCJ",
86
- "color": "#00C159"
87
- }
88
- }, {
89
- "name": "排水户",
90
- "key": "YSGD_PSH",
91
- "show": false,
92
- "filter": "category = '1' and appendant = '25'",
93
- "legend": {
94
- "icon": "PSH",
95
- "color": "#00C159"
96
- }
97
- }, {
98
- "name": "污水厂",
99
- "key": "YSGD_WSC",
100
- "show": false,
101
- "filter": "category = '1' and appendant = '17'",
102
- "legend": {
103
- "icon": "WSC",
104
- "color": "#00C159"
105
- }
106
- }, {
107
- "name": "雨水篦",
108
- "key": "YSGD_BIZ",
109
- "show": false,
110
- "filter": "category = '1' and appendant = '22'",
111
- "legend": {
112
- "icon": "GD_BIZ",
113
- "color": "#00C159"
114
- }
115
- }]
116
- }, {
117
- "type": "SewagePointLayer",
118
- "name": "污水管点",
119
- "key": "WSJ",
120
- "code": "WSJ",
121
- "show": false,
122
- "params": {
123
- "STYLES": "zhsw_point"
124
- },
125
- "group": [{
126
- "name": "暗井",
127
- "key": "WSGD_AJ",
128
- "show": false,
129
- "filter": "category = '2' and appendant = '40'",
130
- "legend": {
131
- "icon": "YJ_JG",
132
- "color": "#ffa600"
133
- }
134
- }, {
135
- "name": "泵站",
136
- "key": "WSGD_BZ",
137
- "show": false,
138
- "filter": "category = '2' and appendant = '1'",
139
- "legend": {
140
- "icon": "GD_BZ",
141
- "color": "#ffa600"
142
- }
143
- }, {
144
- "name": "阀门",
145
- "show": false,
146
- "key": "WSGD_FMJ",
147
- "filter": "category = '2' and appendant = '5'",
148
- "legend": {
149
- "icon": "GD_FMJ",
150
- "color": "#ffa600"
151
- }
152
- }, {
153
- "name": "检查井",
154
- "key": "WSGD_JCJ",
155
- "show": false,
156
- "filter": "category = '2' and appendant = '6'",
157
- "legend": {
158
- "icon": "GD_JCJ",
159
- "color": "#ffa600"
160
- }
161
- }, {
162
- "name": "排水户",
163
- "key": "WSGD_PSH",
164
- "show": false,
165
- "filter": "category = '2' and appendant = '25'",
166
- "legend": {
167
- "icon": "PSH",
168
- "color": "#ffa600"
169
- }
170
- }, {
171
- "name": "污水厂",
172
- "key": "WSGD_WSC",
173
- "show": false,
174
- "filter": "category = '2' and appendant = '17'",
175
- "legend": {
176
- "icon": "WSC",
177
- "color": "#ffa600"
178
- }
179
- }, {
180
- "name": "雨水篦",
181
- "key": "WSGD_BIZ",
182
- "show": false,
183
- "filter": "category = '2' and appendant = '22'",
184
- "legend": {
185
- "icon": "GD_BIZ",
186
- "color": "#ffa600"
187
- }
188
- }]
189
- }, {
190
- "type": "ConfluencePointLayer",
191
- "name": "合流管点",
192
- "key": "HLJ",
193
- "code": "HLJ",
194
- "show": false,
195
- "params": {
196
- "STYLES": "zhsw_point"
197
- },
198
- "group": [{
199
- "name": "暗井",
200
- "key": "HLGD_AJ",
201
- "show": false,
202
- "filter": "category = '3' and appendant = '40'",
203
- "legend": {
204
- "icon": "YJ_JG",
205
- "color": "#00c3ff"
206
- }
207
- }, {
208
- "name": "泵站",
209
- "key": "HLGD_BZ",
210
- "show": false,
211
- "filter": "category = '3' and appendant = '1'",
212
- "legend": {
213
- "icon": "GD_BZ",
214
- "color": "#00c3ff"
215
- }
216
- }, {
217
- "name": "阀门",
218
- "show": false,
219
- "key": "HLGD_FMJ",
220
- "filter": "category = '3' and appendant = '5'",
221
- "legend": {
222
- "icon": "GD_FMJ",
223
- "color": "#00c3ff"
224
- }
225
- }, {
226
- "name": "检查井",
227
- "key": "HLGD_JCJ",
228
- "show": false,
229
- "filter": "category = '3' and appendant = '6'",
230
- "legend": {
231
- "icon": "GD_JCJ",
232
- "color": "#00c3ff"
233
- }
234
- }, {
235
- "name": "排水户",
236
- "key": "HLGD_PSH",
237
- "show": false,
238
- "filter": "category = '3' and appendant = '25'",
239
- "legend": {
240
- "icon": "PSH",
241
- "color": "#00c3ff"
242
- }
243
- }, {
244
- "name": "污水厂",
245
- "key": "HLGD_WSC",
246
- "show": false,
247
- "filter": "category = '3' and appendant = '17'",
248
- "legend": {
249
- "icon": "WSC",
250
- "color": "#00c3ff"
251
- }
252
- }, {
253
- "name": "雨水篦",
254
- "key": "HLGD_BIZ",
255
- "show": false,
256
- "filter": "category = '3' and appendant = '22'",
257
- "legend": {
258
- "icon": "GD_BIZ",
259
- "color": "#00c3ff"
260
- }
261
- }]
262
- }]
263
- }, {
264
- "name": "排水户",
265
- "id": "LXPSH",
266
- "show": false,
267
- "children": [{
268
- "type": "FacilityLayer",
269
- "code": "sewerage_user",
270
- "id": "ZDPSH",
271
- "name": "非居民生活污水",
272
- "show": false,
273
- "params": {
274
- "key": "drainageTypeId",
275
- "operator": "=",
276
- "value": 0
277
- },
278
- "styleOption": {
279
- "icon": "PSH"
280
- }
281
- }, {
282
- "type": "FacilityLayer",
283
- "code": "sewerage_user",
284
- "id": "CY",
285
- "show": false,
286
- "name": "餐饮污水",
287
- "params": {
288
- "key": "drainageTypeId",
289
- "operator": "=",
290
- "value": "1"
291
- },
292
- "styleOption": {
293
- "icon": "CY"
294
- }
295
- }, {
296
- "type": "FacilityLayer",
297
- "code": "sewerage_user",
298
- "id": "MRMF",
299
- "show": false,
300
- "name": "美容美发污水",
301
- "params": {
302
- "key": "drainageTypeId",
303
- "operator": "=",
304
- "value": "2"
305
- },
306
- "styleOption": {
307
- "icon": "MRMF"
308
- }
309
- }, {
310
- "type": "FacilityLayer",
311
- "code": "sewerage_user",
312
- "id": "XYU",
313
- "show": false,
314
- "name": "含沉淀物污水",
315
- "params": {
316
- "key": "drainageTypeId",
317
- "operator": "=",
318
- "value": "3"
319
- },
320
- "styleOption": {
321
- "icon": "XYU"
322
- }
323
- }, {
324
- "type": "FacilityLayer",
325
- "code": "sewerage_user",
326
- "id": "LG",
327
- "show": false,
328
- "name": "汽车修理污水",
329
- "params": {
330
- "key": "drainageTypeId",
331
- "operator": "=",
332
- "value": "6"
333
- },
334
- "styleOption": {
335
- "icon": "LG"
336
- }
337
- }, {
338
- "type": "FacilityLayer",
339
- "code": "sewerage_user",
340
- "id": "XY",
341
- "show": false,
342
- "name": "有毒有害污水",
343
- "params": {
344
- "key": "drainageTypeId",
345
- "operator": "=",
346
- "value": "4"
347
- },
348
- "styleOption": {
349
- "icon": "XY"
350
- }
351
- }, {
352
- "type": "FacilityLayer",
353
- "code": "sewerage_user",
354
- "id": "XC",
355
- "show": false,
356
- "name": "畜禽屠宰、肉类加工污水",
357
- "params": {
358
- "key": "drainageTypeId",
359
- "operator": "=",
360
- "value": "6"
361
- },
362
- "styleOption": {
363
- "icon": "XC"
364
- }
365
- }]
366
- }];
367
-
368
- // 图层点击事件?
369
-
370
- export default layerConfig;
@@ -1,4 +0,0 @@
1
- import { type FC } from 'react';
2
- import { CommonPropsI } from '../_util/interface';
3
- declare const RainLineLayer: FC<CommonPropsI>;
4
- export default RainLineLayer;
@@ -1,51 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["params", "showModal", "popup"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import { ImageLayer } from '@vtx/cs-map';
12
- import React from 'react';
13
- import FacilityTemplate from "../_components/Template/FacilityTemplate";
14
- import FacilityTemplateV2 from "../_components/Template/FacilityTemplateV2";
15
- import { getTenantId } from "../_util/util";
16
- var RainLineLayer = function RainLineLayer(props) {
17
- var _props$params = props.params,
18
- params = _props$params === void 0 ? {} : _props$params,
19
- showModal = props.showModal,
20
- _props$popup = props.popup,
21
- popup = _props$popup === void 0 ? {
22
- version: '1'
23
- } : _props$popup,
24
- otherProps = _objectWithoutProperties(props, _excluded);
25
- var tenantId = getTenantId();
26
- return /*#__PURE__*/React.createElement(ImageLayer, _extends({
27
- url: "/geoserver/zhsw/wms",
28
- params: _objectSpread({
29
- typeName: 'zhsw:zhsw_line',
30
- viewparams: "tenantId:".concat(tenantId),
31
- cql_filter: "network_type= 1"
32
- }, params),
33
- name: "\u96E8\u6C34\u7BA1\u7EBF",
34
- labelField: "code",
35
- zIndex: 20,
36
- id: 'RainLineLayer',
37
- template: function template(feature) {
38
- if (popup.version == '2') {
39
- return /*#__PURE__*/React.createElement(FacilityTemplateV2, {
40
- feature: feature,
41
- showModal: showModal
42
- });
43
- }
44
- return /*#__PURE__*/React.createElement(FacilityTemplate, {
45
- feature: feature,
46
- showModal: showModal
47
- });
48
- }
49
- }, otherProps));
50
- };
51
- export default RainLineLayer;
@@ -1,4 +0,0 @@
1
- import { type FC } from 'react';
2
- import { CommonPropsI } from '../_util/interface';
3
- declare const RainManholeLayer: FC<CommonPropsI>;
4
- export default RainManholeLayer;
@@ -1,51 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["params", "showModal", "popup"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import { ImageLayer } from '@vtx/cs-map';
12
- import React from 'react';
13
- import FacilityTemplate from "../_components/Template/FacilityTemplate";
14
- import FacilityTemplateV2 from "../_components/Template/FacilityTemplateV2";
15
- import { getTenantId } from "../_util/util";
16
- var RainManholeLayer = function RainManholeLayer(props) {
17
- var _props$params = props.params,
18
- params = _props$params === void 0 ? {} : _props$params,
19
- showModal = props.showModal,
20
- _props$popup = props.popup,
21
- popup = _props$popup === void 0 ? {
22
- version: '1'
23
- } : _props$popup,
24
- otherProps = _objectWithoutProperties(props, _excluded);
25
- var tenantId = getTenantId();
26
- return /*#__PURE__*/React.createElement(ImageLayer, _extends({
27
- url: "/geoserver/zhsw/wms",
28
- params: _objectSpread({
29
- typeName: 'zhsw:zhsw_manhole',
30
- cql_filter: "category = 1",
31
- viewparams: "tenantId:".concat(tenantId)
32
- }, params),
33
- name: "\u96E8\u6C34\u7AA8\u4E95",
34
- labelField: "code",
35
- zIndex: 30,
36
- id: 'RainManholeLayer',
37
- template: function template(feature) {
38
- if (popup.version == '2') {
39
- return /*#__PURE__*/React.createElement(FacilityTemplateV2, {
40
- feature: feature,
41
- showModal: showModal
42
- });
43
- }
44
- return /*#__PURE__*/React.createElement(FacilityTemplate, {
45
- feature: feature,
46
- showModal: showModal
47
- });
48
- }
49
- }, otherProps));
50
- };
51
- export default RainManholeLayer;
@@ -1,4 +0,0 @@
1
- import { type FC } from 'react';
2
- import { CommonPropsI } from '../_util/interface';
3
- declare const RainPointLayer: FC<CommonPropsI>;
4
- export default RainPointLayer;
@@ -1,51 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["params", "showModal", "popup"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import { ImageLayer } from '@vtx/cs-map';
12
- import React from 'react';
13
- import FacilityTemplate from "../_components/Template/FacilityTemplate";
14
- import FacilityTemplateV2 from "../_components/Template/FacilityTemplateV2";
15
- import { getTenantId } from "../_util/util";
16
- var RainPointLayer = function RainPointLayer(props) {
17
- var _props$params = props.params,
18
- params = _props$params === void 0 ? {} : _props$params,
19
- showModal = props.showModal,
20
- _props$popup = props.popup,
21
- popup = _props$popup === void 0 ? {
22
- version: '1'
23
- } : _props$popup,
24
- otherProps = _objectWithoutProperties(props, _excluded);
25
- var tenantId = getTenantId();
26
- return /*#__PURE__*/React.createElement(ImageLayer, _extends({
27
- url: "/geoserver/zhsw/wms",
28
- params: _objectSpread({
29
- typeName: 'zhsw:zhsw_point',
30
- cql_filter: "category = 1",
31
- viewparams: "tenantId:".concat(tenantId)
32
- }, params),
33
- name: "\u96E8\u6C34\u7BA1\u70B9",
34
- labelField: "code",
35
- zIndex: 40,
36
- id: 'RainPointLayer',
37
- template: function template(feature) {
38
- if (popup.version == '2') {
39
- return /*#__PURE__*/React.createElement(FacilityTemplateV2, {
40
- feature: feature,
41
- showModal: showModal
42
- });
43
- }
44
- return /*#__PURE__*/React.createElement(FacilityTemplate, {
45
- feature: feature,
46
- showModal: showModal
47
- });
48
- }
49
- }, otherProps));
50
- };
51
- export default RainPointLayer;
@@ -1,4 +0,0 @@
1
- import { type FC } from 'react';
2
- import { CommonPropsI } from '../_util/interface';
3
- declare const RawWaterLineLayer: FC<CommonPropsI>;
4
- export default RawWaterLineLayer;