@vtx/cs-map-layer 1.0.20 → 1.0.22

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 (78) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -40
  3. package/lib/ConfluenceLineLayer/index.d.ts +4 -0
  4. package/lib/ConfluenceLineLayer/index.js +51 -0
  5. package/lib/ConfluenceManholeLayer/index.d.ts +4 -0
  6. package/lib/ConfluenceManholeLayer/index.js +51 -0
  7. package/lib/ConfluencePointLayer/index.d.ts +4 -0
  8. package/lib/ConfluencePointLayer/index.js +51 -0
  9. package/lib/DeviceLayer/index.d.ts +11 -0
  10. package/lib/DeviceLayer/index.js +155 -0
  11. package/lib/DivisionLayer/index.d.ts +4 -0
  12. package/lib/DivisionLayer/index.js +26 -0
  13. package/lib/FacilityLayer/index.d.ts +13 -0
  14. package/lib/FacilityLayer/index.js +75 -0
  15. package/lib/Layer/index.d.ts +5 -0
  16. package/lib/Layer/index.js +105 -0
  17. package/lib/Layer/layerConfig.d.ts +82 -0
  18. package/lib/Layer/layerConfig.js +370 -0
  19. package/lib/RainLineLayer/index.d.ts +4 -0
  20. package/lib/RainLineLayer/index.js +54 -0
  21. package/lib/RainManholeLayer/index.d.ts +4 -0
  22. package/lib/RainManholeLayer/index.js +54 -0
  23. package/lib/RainPointLayer/index.d.ts +4 -0
  24. package/lib/RainPointLayer/index.js +54 -0
  25. package/lib/RawWaterLineLayer/index.d.ts +4 -0
  26. package/lib/RawWaterLineLayer/index.js +63 -0
  27. package/lib/RawWaterPointLayer/index.d.ts +4 -0
  28. package/lib/RawWaterPointLayer/index.js +63 -0
  29. package/lib/SewageLineLayer/index.d.ts +4 -0
  30. package/lib/SewageLineLayer/index.js +51 -0
  31. package/lib/SewageManholeLayer/index.d.ts +4 -0
  32. package/lib/SewageManholeLayer/index.js +51 -0
  33. package/lib/SewagePointLayer/index.d.ts +4 -0
  34. package/lib/SewagePointLayer/index.js +51 -0
  35. package/lib/WaterDrainLineLayer/index.d.ts +4 -0
  36. package/lib/WaterDrainLineLayer/index.js +50 -0
  37. package/lib/WaterDrainManholeLayer/index.d.ts +4 -0
  38. package/lib/WaterDrainManholeLayer/index.js +50 -0
  39. package/lib/WaterDrainPointLayer/index.d.ts +4 -0
  40. package/lib/WaterDrainPointLayer/index.js +50 -0
  41. package/lib/WaterSupplyLineLayer/index.d.ts +4 -0
  42. package/lib/WaterSupplyLineLayer/index.js +97 -0
  43. package/lib/WaterSupplyPointLayer/index.d.ts +8 -0
  44. package/lib/WaterSupplyPointLayer/index.js +85 -0
  45. package/lib/_components/Template/CloseBtn.d.ts +8 -0
  46. package/lib/_components/Template/CloseBtn.js +21 -0
  47. package/lib/_components/Template/CloseBtnV2.d.ts +8 -0
  48. package/lib/_components/Template/CloseBtnV2.js +24 -0
  49. package/lib/_components/Template/DeviceCustomContent.d.ts +21 -0
  50. package/lib/_components/Template/DeviceCustomContent.js +96 -0
  51. package/lib/_components/Template/DeviceTemplate.d.ts +7 -0
  52. package/lib/_components/Template/DeviceTemplate.js +81 -0
  53. package/lib/_components/Template/DeviceTemplateV2.d.ts +7 -0
  54. package/lib/_components/Template/DeviceTemplateV2.js +151 -0
  55. package/lib/_components/Template/FacilityCustomContent.d.ts +21 -0
  56. package/lib/_components/Template/FacilityCustomContent.js +171 -0
  57. package/lib/_components/Template/FacilityTemplate.d.ts +13 -0
  58. package/lib/_components/Template/FacilityTemplate.js +115 -0
  59. package/lib/_components/Template/FacilityTemplateV2.d.ts +14 -0
  60. package/lib/_components/Template/FacilityTemplateV2.js +119 -0
  61. package/lib/_components/Template/index.less +15 -0
  62. package/lib/_components/Template/indexV2.less +589 -0
  63. package/lib/_util/http.d.ts +42 -0
  64. package/lib/_util/http.js +161 -0
  65. package/lib/_util/interface.d.ts +389 -0
  66. package/lib/_util/interface.js +110 -0
  67. package/lib/_util/layerConfig.d.ts +39 -0
  68. package/lib/_util/layerConfig.js +779 -0
  69. package/lib/_util/transform.d.ts +1 -0
  70. package/lib/_util/transform.js +111 -0
  71. package/lib/_util/util.d.ts +2 -0
  72. package/lib/_util/util.js +24 -0
  73. package/lib/assets/address-dark.png +0 -0
  74. package/lib/assets/address.png +0 -0
  75. package/lib/index.d.ts +22 -0
  76. package/lib/index.js +22 -0
  77. package/lib/typings.d.ts +4 -0
  78. package/package.json +2 -1
@@ -0,0 +1,589 @@
1
+ .cs-map-container .cesium-popup {
2
+ max-width: 360px;
3
+
4
+ .cesium-popup-close {
5
+ z-index: 99;
6
+ }
7
+
8
+ .cesium-popup-v2 {
9
+ position: relative;
10
+ max-width: 360px;
11
+ width: 360px;
12
+ margin: -52px -12px -10px;
13
+ }
14
+ }
15
+
16
+ .cesium-popup-no-title+.cesium-popup-content {
17
+ .cesium-popup-v2 {
18
+ margin: -10px -12px;
19
+ }
20
+ }
21
+
22
+ .close-btn {
23
+ position: absolute;
24
+ top: 12px;
25
+ right: 30px;
26
+ cursor: pointer;
27
+ }
28
+
29
+ .facility-layer-close-btn {
30
+ position: absolute;
31
+ top: 12px;
32
+ color: #0a4ff8;
33
+ right: 30px;
34
+ cursor: pointer;
35
+ }
36
+
37
+ .facility-layer-custom-btn {
38
+ position: absolute;
39
+ line-height: 1;
40
+ top: 12px;
41
+ right: 50px;
42
+ cursor: pointer;
43
+ }
44
+
45
+ .facility-layer-custom-button {
46
+ padding: 8px 10px 10px;
47
+ text-align: right;
48
+ }
49
+
50
+ .facility-layer-custom-panel-has-button {
51
+ overflow: hidden;
52
+ background: #162d56;
53
+ box-shadow: inset 0 4px 16px 0 #1d7ad0;
54
+ border-radius: 8px;
55
+
56
+ .facility-layer-custom-content-dark {
57
+ background: transparent;
58
+ box-shadow: none;
59
+ border-radius: 8px 8px 0 0;
60
+ }
61
+
62
+ .facility-layer-custom-button {
63
+ padding: 2px 10px 10px;
64
+ }
65
+ }
66
+
67
+ .map-empty {
68
+ display: flex;
69
+ flex-direction: column;
70
+ justify-content: center;
71
+ align-items: center;
72
+ }
73
+
74
+ .map-empty-img {
75
+ width: 120px;
76
+ height: auto;
77
+ }
78
+
79
+ .facility-layer-custom-content {
80
+ top: 0;
81
+ bottom: 0;
82
+ left: 0;
83
+ right: 0;
84
+ cursor: pointer;
85
+ z-index: 10;
86
+
87
+ &-title {
88
+ height: 35px;
89
+ background: rgba(24, 144, 255, .1);
90
+ border-radius: 8px 8px 0 0;
91
+ display: flex;
92
+ align-items: center;
93
+ font-weight: 500;
94
+ padding-left: 8px;
95
+ padding-right: 50px;
96
+
97
+ &-left {
98
+ flex: 1;
99
+ white-space: nowrap;
100
+ overflow: hidden;
101
+ text-overflow: ellipsis;
102
+ font-size: 16px;
103
+ color: #000;
104
+ margin-left: -1px;
105
+ margin-right: 9px;
106
+ }
107
+
108
+ &-right {
109
+ padding: 2px 4px;
110
+ background: rgba(24, 144, 255, .2);
111
+ border-radius: 2px;
112
+ border: 1px solid #1890ff;
113
+ font-size: 12px;
114
+ color: #1890ff;
115
+ display: flex;
116
+ justify-content: center;
117
+ align-items: center;
118
+ }
119
+ }
120
+
121
+ &-keyParam {
122
+ width: 339px;
123
+ margin-left: 9px;
124
+ padding-top: 7px;
125
+
126
+ &-deviceDetail {
127
+ display: flex;
128
+ align-items: center;
129
+
130
+ img {
131
+ width: 14px;
132
+ height: 14px;
133
+ margin-right: 3px;
134
+ }
135
+
136
+ &-address {
137
+ flex: 1;
138
+ white-space: nowrap;
139
+ overflow: hidden;
140
+ text-overflow: ellipsis;
141
+ }
142
+ }
143
+
144
+ &-line {
145
+ width: 100%;
146
+ height: 1px;
147
+ background-color: #355184;
148
+ }
149
+
150
+ &-item {
151
+ display: flex;
152
+ align-items: center;
153
+ font-weight: 500;
154
+ font-size: 14px;
155
+ color: rgba(0, 0, 0, .85);
156
+ line-height: 2.0;
157
+
158
+ &-address {
159
+ margin-left: 8px;
160
+ width: 311px;
161
+ white-space: nowrap;
162
+ overflow: hidden;
163
+ text-overflow: ellipsis;
164
+ }
165
+ }
166
+ }
167
+
168
+ &-keyIndicators {
169
+ padding: 7px 10px;
170
+
171
+ &-item {
172
+ display: flex;
173
+ justify-content: space-between;
174
+ align-items: center;
175
+ font-weight: 400;
176
+ font-size: 14px;
177
+ color: #595959;
178
+ line-height: 2.0;
179
+
180
+ &-left {
181
+ word-break: break-all;
182
+ flex-wrap: nowrap;
183
+ align-items: baseline;
184
+ display: flex;
185
+
186
+ &-name {
187
+ white-space: nowrap;
188
+ }
189
+
190
+ &-value {
191
+ margin-left: 8px;
192
+ }
193
+ }
194
+
195
+ &-round {
196
+ width: 5px;
197
+ height: 5px;
198
+ background-color: rgba(89, 89, 89, 1);
199
+ border-radius: 50%;
200
+ margin-right: 4px;
201
+ }
202
+ }
203
+ }
204
+
205
+ &-dark {
206
+ background: #162d56;
207
+ box-shadow: inset 0 4px 16px 0 #1d7ad0;
208
+ border-radius: 8px;
209
+ color: #fff;
210
+
211
+ &-title {
212
+ height: 35px;
213
+ background: #135694;
214
+ border-radius: 8px 8px 0 0;
215
+ display: flex;
216
+ align-items: center;
217
+ font-weight: 500;
218
+ padding-left: 10px;
219
+ padding-right: 50px;
220
+
221
+ &-left {
222
+ flex: 1;
223
+ white-space: nowrap;
224
+ overflow: hidden;
225
+ text-overflow: ellipsis;
226
+ font-size: 16px;
227
+ // color: #000000;
228
+ margin-left: -1px;
229
+ margin-right: 9px;
230
+ color: #fff;
231
+ }
232
+
233
+ &-right {
234
+ padding: 2px 4px;
235
+ background: rgba(24, 144, 255, .2);
236
+ border-radius: 2px;
237
+ border: 1px solid #1890ff;
238
+ font-size: 12px;
239
+ color: #1890ff;
240
+ display: flex;
241
+ justify-content: center;
242
+ align-items: center;
243
+ }
244
+ }
245
+
246
+ &-keyParam {
247
+ width: 339px;
248
+ margin-left: 10px;
249
+ padding-top: 7px;
250
+
251
+ &-deviceDetail {
252
+ display: flex;
253
+ align-items: center;
254
+
255
+ img {
256
+ width: 14px;
257
+ height: 14px;
258
+ margin-right: 3px;
259
+ }
260
+
261
+ &-address {
262
+ flex: 1;
263
+ white-space: nowrap;
264
+ overflow: hidden;
265
+ text-overflow: ellipsis;
266
+ }
267
+ }
268
+
269
+ &-line {
270
+ width: 100%;
271
+ height: 1px;
272
+ background-color: rgba(232, 232, 232, .2);
273
+ }
274
+
275
+ &-item {
276
+ display: flex;
277
+ align-items: center;
278
+ margin-bottom: 6px;
279
+ font-weight: 500;
280
+ font-size: 14px;
281
+ // color: rgba(0, 0, 0, 0.85);
282
+ color: #fff;
283
+
284
+ &-address {
285
+ margin-left: 8px;
286
+ width: 311px;
287
+ white-space: nowrap;
288
+ overflow: hidden;
289
+ text-overflow: ellipsis;
290
+ }
291
+ }
292
+ }
293
+
294
+ &-keyIndicators {
295
+ padding: 7px 10px;
296
+
297
+ &-item {
298
+ display: flex;
299
+ justify-content: space-between;
300
+ align-items: center;
301
+ font-weight: 400;
302
+ font-size: 14px;
303
+ // color: #595959;
304
+ margin-bottom: 6px;
305
+
306
+ &:last-child {
307
+ margin-bottom: 0;
308
+ }
309
+
310
+ &-left {
311
+ display: flex;
312
+ align-items: center;
313
+
314
+ &-value {
315
+ margin-left: 8px;
316
+ }
317
+ }
318
+
319
+ &-round {
320
+ width: 5px;
321
+ height: 5px;
322
+ background-color: #fff;
323
+ border-radius: 50%;
324
+ margin-right: 2px;
325
+ }
326
+
327
+ &-updateTime {
328
+ font-size: 12px;
329
+ color: rgba(255, 255, 255, .6);
330
+ }
331
+ }
332
+ }
333
+ }
334
+ }
335
+
336
+ .device-layer-custom-content {
337
+ top: 0;
338
+ bottom: 0;
339
+ left: 0;
340
+ right: 0;
341
+ cursor: pointer;
342
+ z-index: 10;
343
+
344
+ &-title {
345
+ height: 35px;
346
+ background: rgba(24, 144, 255, .1);
347
+ border-radius: 8px 8px 0 0;
348
+ display: flex;
349
+ align-items: center;
350
+ font-weight: 500;
351
+ padding-left: 8px;
352
+ padding-right: 50px;
353
+
354
+ &-left {
355
+ flex: 1;
356
+ white-space: nowrap;
357
+ overflow: hidden;
358
+ text-overflow: ellipsis;
359
+ font-size: 16px;
360
+ color: #000;
361
+ margin-left: -1px;
362
+ margin-right: 9px;
363
+ }
364
+
365
+ &-right {
366
+ padding: 2px 4px;
367
+ background: rgba(24, 144, 255, .2);
368
+ border-radius: 2px;
369
+ border: 1px solid #1890ff;
370
+ font-size: 12px;
371
+ color: #1890ff;
372
+ display: flex;
373
+ justify-content: center;
374
+ align-items: center;
375
+ }
376
+ }
377
+
378
+ &-keyParam {
379
+ width: 339px;
380
+ margin-left: 9px;
381
+ padding-top: 7px;
382
+
383
+ &-deviceDetail {
384
+ display: flex;
385
+ align-items: center;
386
+
387
+ img {
388
+ width: 14px;
389
+ height: 14px;
390
+ margin-right: 3px;
391
+ }
392
+
393
+ &-address {
394
+ flex: 1;
395
+ white-space: nowrap;
396
+ overflow: hidden;
397
+ text-overflow: ellipsis;
398
+ }
399
+ }
400
+
401
+ &-line {
402
+ width: 100%;
403
+ height: 1px;
404
+ background-color: #355184;
405
+ }
406
+
407
+ &-item {
408
+ display: flex;
409
+ align-items: center;
410
+ font-weight: 500;
411
+ font-size: 14px;
412
+ color: rgba(0, 0, 0, .85);
413
+ line-height: 2.0;
414
+
415
+ &-address {
416
+ margin-left: 8px;
417
+ width: 311px;
418
+ white-space: nowrap;
419
+ overflow: hidden;
420
+ text-overflow: ellipsis;
421
+ }
422
+ }
423
+ }
424
+
425
+ &-keyIndicators {
426
+ padding: 7px 10px;
427
+
428
+ &-item {
429
+ display: flex;
430
+ justify-content: space-between;
431
+ align-items: center;
432
+ font-weight: 400;
433
+ font-size: 14px;
434
+ color: #595959;
435
+ line-height: 2.0;
436
+
437
+ &-left {
438
+ display: flex;
439
+ align-items: center;
440
+
441
+ &-value {
442
+ margin-left: 8px;
443
+ }
444
+ }
445
+
446
+ &-round {
447
+ width: 5px;
448
+ height: 5px;
449
+ background-color: rgba(89, 89, 89, 1);
450
+ border-radius: 50%;
451
+ margin-right: 2px;
452
+ }
453
+
454
+ &-updateTime {
455
+ font-size: 12px;
456
+ color: #8c8c8c;
457
+ }
458
+ }
459
+ }
460
+
461
+ &-dark {
462
+ background: #162d56;
463
+ box-shadow: inset 0 4px 16px 0 #1d7ad0;
464
+ border-radius: 8px;
465
+ color: #fff;
466
+
467
+ &-title {
468
+ height: 35px;
469
+ background: #135694;
470
+ border-radius: 8px 8px 0 0;
471
+ display: flex;
472
+ align-items: center;
473
+ font-weight: 500;
474
+ padding-left: 10px;
475
+ padding-right: 50px;
476
+
477
+ &-left {
478
+ flex: 1;
479
+ white-space: nowrap;
480
+ overflow: hidden;
481
+ text-overflow: ellipsis;
482
+ font-size: 16px;
483
+ margin-left: -1px;
484
+ margin-right: 9px;
485
+ color: #fff;
486
+ }
487
+
488
+ &-right {
489
+ padding: 2px 4px;
490
+ background: rgba(24, 144, 255, .2);
491
+ border-radius: 2px;
492
+ border: 1px solid #1890ff;
493
+ font-size: 12px;
494
+ color: #1890ff;
495
+ display: flex;
496
+ justify-content: center;
497
+ align-items: center;
498
+ }
499
+ }
500
+
501
+ &-keyParam {
502
+ width: 339px;
503
+ margin-left: 10px;
504
+ padding-top: 7px;
505
+
506
+ &-deviceDetail {
507
+ display: flex;
508
+ align-items: center;
509
+
510
+ img {
511
+ width: 14px;
512
+ height: 14px;
513
+ margin-right: 3px;
514
+ }
515
+
516
+ &-address {
517
+ flex: 1;
518
+ white-space: nowrap;
519
+ overflow: hidden;
520
+ text-overflow: ellipsis;
521
+ }
522
+ }
523
+
524
+ &-line {
525
+ width: 100%;
526
+ height: 1px;
527
+ background-color: rgba(232, 232, 232, .2);
528
+ }
529
+
530
+ &-item {
531
+ display: flex;
532
+ align-items: center;
533
+ margin-bottom: 6px;
534
+ font-weight: 500;
535
+ font-size: 14px;
536
+ color: #fff;
537
+
538
+ &-address {
539
+ margin-left: 8px;
540
+ width: 311px;
541
+ white-space: nowrap;
542
+ overflow: hidden;
543
+ text-overflow: ellipsis;
544
+ }
545
+ }
546
+ }
547
+
548
+ &-keyIndicators {
549
+ padding: 7px 10px;
550
+
551
+ &-item {
552
+ display: flex;
553
+ justify-content: space-between;
554
+ align-items: center;
555
+ font-weight: 400;
556
+ font-size: 14px;
557
+ line-height: 2.0;
558
+
559
+ &-left {
560
+ word-break: break-all;
561
+ flex-wrap: nowrap;
562
+ align-items: baseline;
563
+ display: flex;
564
+
565
+ &-name {
566
+ white-space: nowrap;
567
+ }
568
+
569
+ &-value {
570
+ margin-left: 8px;
571
+
572
+ &.is-alarm {
573
+ color: #FF2F2F;
574
+ flex: 1;
575
+ }
576
+ }
577
+ }
578
+
579
+ &-round {
580
+ width: 5px;
581
+ height: 5px;
582
+ background-color: #fff;
583
+ border-radius: 50%;
584
+ margin-right: 4px;
585
+ }
586
+ }
587
+ }
588
+ }
589
+ }
@@ -0,0 +1,42 @@
1
+ import { AxiosInstance } from 'axios';
2
+ interface OptionI {
3
+ body?: object | string;
4
+ extraHeader?: {
5
+ msg?: string;
6
+ };
7
+ }
8
+ /**
9
+ * 基于 axios 封装的请求封装
10
+ * axios文档 http://www.axios-js.com/zh-cn/docs/
11
+ * 支持 Get 和 Post 请求
12
+ */
13
+ declare class Http {
14
+ instance: AxiosInstance;
15
+ constructor(options: object);
16
+ _createAxios(options: object): AxiosInstance;
17
+ /**
18
+ * get 请求
19
+ * @param {*} url
20
+ * @param {*} options {body}
21
+ */
22
+ get(url: string, options?: OptionI): Promise<import("axios").AxiosResponse<any>>;
23
+ /**
24
+ * post 请求
25
+ * @param {*} url
26
+ * @param {*} options
27
+ */
28
+ post(url: string, options?: OptionI): Promise<import("axios").AxiosResponse<any>>;
29
+ /**
30
+ * 响应数据的处理
31
+ * @param {*} response
32
+ */
33
+ _responseHandler(response: any): any;
34
+ /**
35
+ * 请求错误处理
36
+ * @param {*} error
37
+ */
38
+ _errorHandler(error: any): void;
39
+ getInstance(): AxiosInstance;
40
+ }
41
+ declare const http: Http;
42
+ export default http;