@antv/l7-component 2.25.3 → 2.25.5

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.
@@ -0,0 +1,653 @@
1
+ .l7-marker-container {
2
+ position: absolute;
3
+ width: 100%;
4
+ height: 100%;
5
+ overflow: hidden;
6
+ }
7
+ .l7-marker {
8
+ position: absolute !important;
9
+ top: 0;
10
+ left: 0;
11
+ z-index: 5;
12
+ cursor: pointer;
13
+ }
14
+ .l7-marker-cluster {
15
+ width: 40px;
16
+ height: 40px;
17
+ background-color: rgba(181, 226, 140, 0.6);
18
+ background-clip: padding-box;
19
+ border-radius: 20px;
20
+ }
21
+ .l7-marker-cluster div {
22
+ width: 30px;
23
+ height: 30px;
24
+ margin-top: 5px;
25
+ margin-left: 5px;
26
+ font:
27
+ 12px 'Helvetica Neue',
28
+ Arial,
29
+ Helvetica,
30
+ sans-serif;
31
+ text-align: center;
32
+ background-color: rgba(110, 204, 57, 0.6);
33
+ border-radius: 15px;
34
+ }
35
+ .l7-marker-cluster span {
36
+ line-height: 30px;
37
+ }
38
+ .l7-touch .l7-control-attribution,
39
+ .l7-touch .l7-control-layers,
40
+ .l7-touch .l7-bar {
41
+ box-shadow: none;
42
+ }
43
+ .l7-touch .l7-control-layers,
44
+ .l7-touch .l7-bar {
45
+ background-clip: padding-box;
46
+ border: 2px solid rgba(0, 0, 0, 0.2);
47
+ }
48
+ .mapboxgl-ctrl-logo,
49
+ .amap-logo {
50
+ display: none !important;
51
+ }
52
+ .l7-select-box {
53
+ border: 3px dashed gray;
54
+ border-radius: 2px;
55
+ position: absolute;
56
+ z-index: 999;
57
+ box-sizing: border-box;
58
+ }
59
+ .l7-control-container {
60
+ font:
61
+ 12px/1.5 'Helvetica Neue',
62
+ Arial,
63
+ Helvetica,
64
+ sans-serif;
65
+ }
66
+ .l7-control-container .l7-control {
67
+ position: relative;
68
+ z-index: 999;
69
+ float: left;
70
+ clear: both;
71
+ color: #595959;
72
+ font-size: 12px;
73
+ pointer-events: visiblepainted;
74
+ /* IE 9-10 doesn't have auto */
75
+ pointer-events: auto;
76
+ }
77
+ .l7-control-container .l7-control.l7-control--hide {
78
+ display: none;
79
+ }
80
+ .l7-control-container .l7-top {
81
+ top: 0;
82
+ display: flex;
83
+ position: absolute;
84
+ z-index: 999;
85
+ pointer-events: none;
86
+ }
87
+ .l7-control-container .l7-top .l7-control:not(.l7-control--hide) {
88
+ margin-top: 8px;
89
+ }
90
+ .l7-control-container .l7-right {
91
+ right: 0;
92
+ display: flex;
93
+ position: absolute;
94
+ z-index: 999;
95
+ pointer-events: none;
96
+ }
97
+ .l7-control-container .l7-right .l7-control:not(.l7-control--hide) {
98
+ margin-right: 8px;
99
+ }
100
+ .l7-control-container .l7-bottom {
101
+ bottom: 0;
102
+ display: flex;
103
+ position: absolute;
104
+ z-index: 999;
105
+ pointer-events: none;
106
+ }
107
+ .l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) {
108
+ margin-bottom: 8px;
109
+ }
110
+ .l7-control-container .l7-left {
111
+ left: 0;
112
+ display: flex;
113
+ position: absolute;
114
+ z-index: 999;
115
+ pointer-events: none;
116
+ }
117
+ .l7-control-container .l7-left .l7-control:not(.l7-control--hide) {
118
+ margin-left: 8px;
119
+ }
120
+ .l7-control-container .l7-center {
121
+ position: absolute;
122
+ display: flex;
123
+ justify-content: center;
124
+ }
125
+ .l7-control-container .l7-center.l7-top,
126
+ .l7-control-container .l7-center.l7-bottom {
127
+ width: 100%;
128
+ }
129
+ .l7-control-container .l7-center.l7-left,
130
+ .l7-control-container .l7-center.l7-right {
131
+ height: 100%;
132
+ }
133
+ .l7-control-container .l7-center .l7-control {
134
+ margin-right: 8px;
135
+ margin-bottom: 8px;
136
+ }
137
+ .l7-control-container .l7-row {
138
+ flex-direction: row;
139
+ }
140
+ .l7-control-container .l7-row.l7-top {
141
+ align-items: flex-start;
142
+ }
143
+ .l7-control-container .l7-row.l7-bottom {
144
+ align-items: flex-end;
145
+ }
146
+ .l7-control-container .l7-column {
147
+ flex-direction: column;
148
+ }
149
+ .l7-control-container .l7-column.l7-left {
150
+ align-items: flex-start;
151
+ }
152
+ .l7-control-container .l7-column.l7-right {
153
+ align-items: flex-end;
154
+ }
155
+ .l7-button-control {
156
+ min-width: 28px;
157
+ height: 28px;
158
+ background-color: #fff;
159
+ border-width: 0;
160
+ border-radius: 2px;
161
+ outline: 0;
162
+ cursor: pointer;
163
+ transition: all 0.2s;
164
+ display: flex;
165
+ justify-content: center;
166
+ align-items: center;
167
+ padding: 0 6px;
168
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
169
+ line-height: 16px;
170
+ }
171
+ .l7-button-control .l7-iconfont {
172
+ fill: #595959;
173
+ color: #595959;
174
+ width: 16px;
175
+ height: 16px;
176
+ }
177
+ .l7-button-control.l7-button-control--row {
178
+ padding: 0 16px 0 13px;
179
+ }
180
+ .l7-button-control.l7-button-control--row * + .l7-button-control__text {
181
+ margin-left: 8px;
182
+ }
183
+ .l7-button-control.l7-button-control--column {
184
+ height: 44px;
185
+ flex-direction: column;
186
+ }
187
+ .l7-button-control.l7-button-control--column .l7-iconfont {
188
+ margin-top: 3px;
189
+ }
190
+ .l7-button-control.l7-button-control--column .l7-button-control__text {
191
+ margin-top: 3px;
192
+ font-size: 10px;
193
+ transform: scale(0.83333);
194
+ }
195
+ .l7-button-control:not(:disabled):hover {
196
+ background-color: #f3f3f3;
197
+ }
198
+ .l7-button-control:not(:disabled):active {
199
+ background-color: #f3f3f3;
200
+ }
201
+ .l7-button-control:disabled {
202
+ background-color: #fafafa;
203
+ color: #bdbdbd;
204
+ cursor: not-allowed;
205
+ }
206
+ .l7-button-control:disabled .l7-iconfont {
207
+ fill: #bdbdbd;
208
+ color: #bdbdbd;
209
+ }
210
+ .l7-button-control:disabled:hover {
211
+ background-color: #fafafa;
212
+ }
213
+ .l7-button-control:disabled:active {
214
+ background-color: #fafafa;
215
+ }
216
+ .l7-popper {
217
+ position: absolute;
218
+ display: flex;
219
+ justify-content: center;
220
+ align-items: center;
221
+ z-index: 5;
222
+ color: #595959;
223
+ }
224
+ .l7-popper.l7-popper-hide {
225
+ display: none;
226
+ }
227
+ .l7-popper .l7-popper-content {
228
+ min-height: 28px;
229
+ background: #fff;
230
+ border-radius: 2px;
231
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
232
+ }
233
+ .l7-popper .l7-popper-arrow {
234
+ width: 0;
235
+ height: 0;
236
+ border-width: 4px;
237
+ border-style: solid;
238
+ border-color: transparent;
239
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
240
+ }
241
+ .l7-popper.l7-popper-left {
242
+ flex-direction: row;
243
+ }
244
+ .l7-popper.l7-popper-left .l7-popper-arrow {
245
+ border-left-color: #fff;
246
+ margin: 10px 0;
247
+ }
248
+ .l7-popper.l7-popper-right {
249
+ flex-direction: row-reverse;
250
+ }
251
+ .l7-popper.l7-popper-right .l7-popper-arrow {
252
+ border-right-color: #fff;
253
+ margin: 10px 0;
254
+ }
255
+ .l7-popper.l7-popper-top {
256
+ flex-direction: column;
257
+ }
258
+ .l7-popper.l7-popper-top .l7-popper-arrow {
259
+ border-top-color: #fff;
260
+ margin: 0 10px;
261
+ }
262
+ .l7-popper.l7-popper-bottom {
263
+ flex-direction: column-reverse;
264
+ }
265
+ .l7-popper.l7-popper-bottom .l7-popper-arrow {
266
+ border-bottom-color: #fff;
267
+ margin: 0 10px;
268
+ }
269
+ .l7-popper.l7-popper-start {
270
+ align-items: flex-start;
271
+ }
272
+ .l7-popper.l7-popper-end {
273
+ align-items: flex-end;
274
+ }
275
+ .l7-select-control--normal {
276
+ padding: 4px 0;
277
+ }
278
+ .l7-select-control--normal .l7-select-control-item {
279
+ display: flex;
280
+ align-items: center;
281
+ height: 24px;
282
+ padding: 0 16px;
283
+ font-size: 12px;
284
+ line-height: 24px;
285
+ }
286
+ .l7-select-control--normal .l7-select-control-item > * + * {
287
+ margin-left: 6px;
288
+ }
289
+ .l7-select-control--normal .l7-select-control-item input[type='checkbox'] {
290
+ width: 14px;
291
+ height: 14px;
292
+ }
293
+ .l7-select-control--normal .l7-select-control-item:hover {
294
+ background-color: #f3f3f3;
295
+ }
296
+ .l7-select-control--image {
297
+ display: flex;
298
+ flex-wrap: wrap;
299
+ align-items: flex-start;
300
+ box-sizing: content-box;
301
+ max-width: 460px;
302
+ max-height: 400px;
303
+ margin: 12px 0 0 12px;
304
+ overflow: hidden auto;
305
+ }
306
+ .l7-select-control--image .l7-select-control-item {
307
+ position: relative;
308
+ display: flex;
309
+ flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);
310
+ flex-direction: column;
311
+ justify-content: center;
312
+ box-sizing: content-box;
313
+ margin-right: 12px;
314
+ margin-bottom: 12px;
315
+ overflow: hidden;
316
+ font-size: 12px;
317
+ border: 1px solid #fff;
318
+ border-radius: 2px;
319
+ }
320
+ .l7-select-control--image .l7-select-control-item img {
321
+ width: 100%;
322
+ height: 80px;
323
+ }
324
+ .l7-select-control--image .l7-select-control-item input[type='checkbox'] {
325
+ position: absolute;
326
+ top: 0;
327
+ right: 0;
328
+ }
329
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row {
330
+ display: flex;
331
+ align-items: center;
332
+ justify-content: center;
333
+ line-height: 26px;
334
+ }
335
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {
336
+ margin-left: 8px;
337
+ }
338
+ .l7-select-control--image .l7-select-control-item.l7-select-control-item-active {
339
+ border-color: #0370fe;
340
+ }
341
+ .l7-select-control-item {
342
+ cursor: pointer;
343
+ }
344
+ .l7-select-control-item input[type='checkbox'] {
345
+ margin: 0;
346
+ cursor: pointer;
347
+ }
348
+ .l7-select-control--multiple .l7-select-control-item:hover {
349
+ background-color: transparent;
350
+ }
351
+ .l7-control-logo {
352
+ width: 89px;
353
+ height: 16px;
354
+ user-select: none;
355
+ }
356
+ .l7-control-logo img {
357
+ height: 100%;
358
+ width: 100%;
359
+ }
360
+ .l7-control-logo .l7-control-logo-link {
361
+ display: block;
362
+ cursor: pointer;
363
+ }
364
+ .l7-control-logo .l7-control-logo-link img {
365
+ cursor: pointer;
366
+ }
367
+ .l7-control-mouse-location {
368
+ background-color: #fff;
369
+ border-radius: 2px;
370
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
371
+ padding: 2px 4px;
372
+ min-width: 130px;
373
+ }
374
+ .l7-control-zoom {
375
+ overflow: hidden;
376
+ border-radius: 2px;
377
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
378
+ }
379
+ .l7-control-zoom .l7-button-control {
380
+ font-size: 16px;
381
+ border-bottom: 1px solid #f0f0f0;
382
+ border-radius: 0;
383
+ box-shadow: 0 0 0;
384
+ }
385
+ .l7-control-zoom .l7-button-control .l7-iconfont {
386
+ width: 14px;
387
+ height: 14px;
388
+ }
389
+ .l7-control-zoom .l7-button-control:last-child {
390
+ border-bottom: 0;
391
+ }
392
+ .l7-control-zoom .l7-control-zoom__number {
393
+ color: #595959;
394
+ padding: 0;
395
+ }
396
+ .l7-control-zoom .l7-control-zoom__number:hover {
397
+ background-color: #fff;
398
+ }
399
+ .l7-control-scale {
400
+ display: flex;
401
+ flex-direction: column;
402
+ }
403
+ .l7-control-scale .l7-control-scale-line {
404
+ box-sizing: border-box;
405
+ padding: 2px 5px 1px;
406
+ overflow: hidden;
407
+ color: #595959;
408
+ font-size: 10px;
409
+ line-height: 1.1;
410
+ white-space: nowrap;
411
+ background: #fff;
412
+ border: 2px solid #000;
413
+ border-top: 0;
414
+ transition: width 0.1s;
415
+ }
416
+ .l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {
417
+ margin-top: -2px;
418
+ border-top: 2px solid #777;
419
+ border-bottom: none;
420
+ }
421
+ .l7-right .l7-control-scale {
422
+ display: flex;
423
+ align-items: flex-end;
424
+ }
425
+ .l7-right .l7-control-scale .l7-control-scale-line {
426
+ text-align: right;
427
+ }
428
+ .l7-popup {
429
+ position: absolute;
430
+ top: 0;
431
+ left: 0;
432
+ z-index: 5;
433
+ display: flex;
434
+ will-change: transform;
435
+ pointer-events: none;
436
+ }
437
+ .l7-popup.l7-popup-hide {
438
+ display: none;
439
+ }
440
+ .l7-popup .l7-popup-content {
441
+ position: relative;
442
+ padding: 16px;
443
+ font-size: 14px;
444
+ background: #fff;
445
+ border-radius: 3px;
446
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
447
+ }
448
+ .l7-popup .l7-popup-content .l7-popup-content__title {
449
+ margin-bottom: 8px;
450
+ font-weight: bold;
451
+ }
452
+ .l7-popup .l7-popup-content .l7-popup-close-button,
453
+ .l7-popup .l7-popup-content .l7-popup-content__title,
454
+ .l7-popup .l7-popup-content .l7-popup-content__panel {
455
+ white-space: normal;
456
+ user-select: text;
457
+ pointer-events: initial;
458
+ }
459
+ .l7-popup .l7-popup-content .l7-popup-close-button {
460
+ position: absolute;
461
+ top: 0;
462
+ right: 0;
463
+ width: 18px;
464
+ height: 18px;
465
+ padding: 0;
466
+ font-size: 14px;
467
+ line-height: 18px;
468
+ text-align: center;
469
+ background-color: transparent;
470
+ border: 0;
471
+ border-radius: 0 3px 0 0;
472
+ cursor: pointer;
473
+ }
474
+ .l7-popup .l7-popup-tip {
475
+ position: relative;
476
+ z-index: 1;
477
+ width: 0;
478
+ height: 0;
479
+ border: 10px solid transparent;
480
+ }
481
+ .l7-popup.l7-popup-anchor-bottom,
482
+ .l7-popup.l7-popup-anchor-bottom-left,
483
+ .l7-popup.l7-popup-anchor-bottom-right {
484
+ flex-direction: column-reverse;
485
+ }
486
+ .l7-popup.l7-popup-anchor-bottom .l7-popup-tip,
487
+ .l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,
488
+ .l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {
489
+ bottom: 1px;
490
+ }
491
+ .l7-popup.l7-popup-anchor-top,
492
+ .l7-popup.l7-popup-anchor-top-left,
493
+ .l7-popup.l7-popup-anchor-top-right {
494
+ flex-direction: column;
495
+ }
496
+ .l7-popup.l7-popup-anchor-top .l7-popup-tip,
497
+ .l7-popup.l7-popup-anchor-top-left .l7-popup-tip,
498
+ .l7-popup.l7-popup-anchor-top-right .l7-popup-tip {
499
+ top: 1px;
500
+ }
501
+ .l7-popup.l7-popup-anchor-left {
502
+ flex-direction: row;
503
+ }
504
+ .l7-popup.l7-popup-anchor-right {
505
+ flex-direction: row-reverse;
506
+ }
507
+ .l7-popup-anchor-top .l7-popup-tip {
508
+ position: relative;
509
+ align-self: center;
510
+ border-top: none;
511
+ border-bottom-color: #fff;
512
+ }
513
+ .l7-popup-anchor-top-left .l7-popup-tip {
514
+ align-self: flex-start;
515
+ border-top: none;
516
+ border-bottom-color: #fff;
517
+ border-left: none;
518
+ }
519
+ .l7-popup-anchor-top-right .l7-popup-tip {
520
+ align-self: flex-end;
521
+ border-top: none;
522
+ border-right: none;
523
+ border-bottom-color: #fff;
524
+ }
525
+ .l7-popup-anchor-bottom .l7-popup-tip {
526
+ align-self: center;
527
+ border-top-color: #fff;
528
+ border-bottom: none;
529
+ }
530
+ .l7-popup-anchor-bottom-left .l7-popup-tip {
531
+ align-self: flex-start;
532
+ border-top-color: #fff;
533
+ border-bottom: none;
534
+ border-left: none;
535
+ }
536
+ .l7-popup-anchor-bottom-right .l7-popup-tip {
537
+ align-self: flex-end;
538
+ border-top-color: #fff;
539
+ border-right: none;
540
+ border-bottom: none;
541
+ }
542
+ .l7-popup-anchor-left .l7-popup-tip {
543
+ align-self: center;
544
+ border-right-color: #fff;
545
+ border-left: none;
546
+ }
547
+ .l7-popup-anchor-right .l7-popup-tip {
548
+ right: 1px;
549
+ align-self: center;
550
+ border-right: none;
551
+ border-left-color: #fff;
552
+ }
553
+ .l7-popup-anchor-top-left .l7-popup-content {
554
+ border-top-left-radius: 0;
555
+ }
556
+ .l7-popup-anchor-top-right .l7-popup-content {
557
+ border-top-right-radius: 0;
558
+ }
559
+ .l7-popup-anchor-bottom-left .l7-popup-content {
560
+ border-bottom-left-radius: 0;
561
+ }
562
+ .l7-popup-anchor-bottom-right .l7-popup-content {
563
+ border-bottom-right-radius: 0;
564
+ }
565
+ .l7-popup-track-pointer {
566
+ display: none;
567
+ }
568
+ .l7-popup-track-pointer * {
569
+ user-select: none;
570
+ pointer-events: none;
571
+ }
572
+ .l7-map:hover .l7-popup-track-pointer {
573
+ display: flex;
574
+ }
575
+ .l7-map:active .l7-popup-track-pointer {
576
+ display: none;
577
+ }
578
+ .l7-layer-popup__row {
579
+ font-size: 12px;
580
+ }
581
+ .l7-layer-popup__row + .l7-layer-popup__row {
582
+ margin-top: 4px;
583
+ }
584
+ .l7-control-swipe {
585
+ position: absolute;
586
+ top: 50%;
587
+ left: 50%;
588
+ z-index: 6;
589
+ transform: translate(-50%, -50%);
590
+ touch-action: none;
591
+ }
592
+ .l7-control-swipe_hide {
593
+ display: none;
594
+ }
595
+ .l7-control-swipe::before {
596
+ position: absolute;
597
+ top: -5000px;
598
+ bottom: -5000px;
599
+ left: 50%;
600
+ z-index: -1;
601
+ width: 4px;
602
+ background: #fff;
603
+ transform: translate(-2px, 0);
604
+ content: '';
605
+ }
606
+ .l7-control-swipe.horizontal::before {
607
+ inset: 50% -5000px auto;
608
+ width: auto;
609
+ height: 4px;
610
+ }
611
+ .l7-control-swipe__button {
612
+ display: block;
613
+ width: 28px;
614
+ height: 28px;
615
+ margin: 0;
616
+ padding: 0;
617
+ color: #595959;
618
+ font-weight: bold;
619
+ font-size: inherit;
620
+ text-align: center;
621
+ text-decoration: none;
622
+ background-color: #fff;
623
+ border: none;
624
+ border-radius: 2px;
625
+ outline: none;
626
+ }
627
+ .l7-control-swipe,
628
+ .l7-control-swipe__button {
629
+ cursor: ew-resize;
630
+ }
631
+ .l7-control-swipe.horizontal,
632
+ .l7-control-swipe.horizontal button {
633
+ cursor: ns-resize;
634
+ }
635
+ .l7-control-swipe::after,
636
+ .l7-control-swipe__button::before,
637
+ .l7-control-swipe__button::after {
638
+ position: absolute;
639
+ top: 25%;
640
+ bottom: 25%;
641
+ left: 50%;
642
+ width: 2px;
643
+ background: currentcolor;
644
+ transform: translate(-1px, 0);
645
+ content: '';
646
+ }
647
+ .l7-control-swipe__button::after {
648
+ transform: translateX(4px);
649
+ }
650
+ .l7-control-swipe__button::before {
651
+ transform: translateX(-6px);
652
+ }
653
+ /*# sourceMappingURL=../../none */
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import Marker from './marker';
2
2
  import MarkerLayer from './marker-layer';
3
- import './assets/iconfont/iconfont.js';
4
- import './css/index.less';
3
+ import './assets/iconfont/iconfont';
4
+ import './css/index.css';
5
5
  export * from './control/baseControl';
6
6
  export { ExportImage, type IExportImageControlOption } from './control/exportImage';
7
7
  export { Fullscreen, type IFullscreenControlOption } from './control/fullscreen';