@antv/l7-component 2.22.7 → 2.23.0

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 (3) hide show
  1. package/es/index.js +28 -150
  2. package/lib/index.js +28 -150
  3. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -180,7 +180,6 @@ loadStyles(`.l7-marker-container {
180
180
  height: 100%;
181
181
  overflow: hidden;
182
182
  }
183
-
184
183
  .l7-marker {
185
184
  position: absolute !important;
186
185
  top: 0;
@@ -188,15 +187,13 @@ loadStyles(`.l7-marker-container {
188
187
  z-index: 5;
189
188
  cursor: pointer;
190
189
  }
191
-
192
190
  .l7-marker-cluster {
193
191
  width: 40px;
194
192
  height: 40px;
195
- background-color: rgb(181 226 140 / 60%);
193
+ background-color: rgba(181, 226, 140, 0.6);
196
194
  background-clip: padding-box;
197
195
  border-radius: 20px;
198
196
  }
199
-
200
197
  .l7-marker-cluster div {
201
198
  width: 30px;
202
199
  height: 30px;
@@ -208,31 +205,26 @@ loadStyles(`.l7-marker-container {
208
205
  Helvetica,
209
206
  sans-serif;
210
207
  text-align: center;
211
- background-color: rgb(110 204 57 / 60%);
208
+ background-color: rgba(110, 204, 57, 0.6);
212
209
  border-radius: 15px;
213
210
  }
214
-
215
211
  .l7-marker-cluster span {
216
212
  line-height: 30px;
217
213
  }
218
-
219
214
  .l7-touch .l7-control-attribution,
220
215
  .l7-touch .l7-control-layers,
221
216
  .l7-touch .l7-bar {
222
217
  box-shadow: none;
223
218
  }
224
-
225
219
  .l7-touch .l7-control-layers,
226
220
  .l7-touch .l7-bar {
227
221
  background-clip: padding-box;
228
- border: 2px solid rgb(0 0 0 / 20%);
222
+ border: 2px solid rgba(0, 0, 0, 0.2);
229
223
  }
230
-
231
224
  .mapboxgl-ctrl-logo,
232
225
  .amap-logo {
233
226
  display: none !important;
234
227
  }
235
-
236
228
  .l7-select-box {
237
229
  border: 3px dashed gray;
238
230
  border-radius: 2px;
@@ -240,7 +232,6 @@ loadStyles(`.l7-marker-container {
240
232
  z-index: 999;
241
233
  box-sizing: border-box;
242
234
  }
243
-
244
235
  .l7-control-container {
245
236
  font:
246
237
  12px/1.5 'Helvetica Neue',
@@ -248,7 +239,6 @@ loadStyles(`.l7-marker-container {
248
239
  Helvetica,
249
240
  sans-serif;
250
241
  }
251
-
252
242
  .l7-control-container .l7-control {
253
243
  position: relative;
254
244
  z-index: 999;
@@ -256,16 +246,13 @@ loadStyles(`.l7-marker-container {
256
246
  clear: both;
257
247
  color: #595959;
258
248
  font-size: 12px;
259
- pointer-events: visiblepainted;
260
-
249
+ pointer-events: visiblePainted;
261
250
  /* IE 9-10 doesn't have auto */
262
251
  pointer-events: auto;
263
252
  }
264
-
265
253
  .l7-control-container .l7-control.l7-control--hide {
266
254
  display: none;
267
255
  }
268
-
269
256
  .l7-control-container .l7-top {
270
257
  top: 0;
271
258
  display: flex;
@@ -273,11 +260,9 @@ loadStyles(`.l7-marker-container {
273
260
  z-index: 999;
274
261
  pointer-events: none;
275
262
  }
276
-
277
263
  .l7-control-container .l7-top .l7-control:not(.l7-control--hide) {
278
264
  margin-top: 8px;
279
265
  }
280
-
281
266
  .l7-control-container .l7-right {
282
267
  right: 0;
283
268
  display: flex;
@@ -285,11 +270,9 @@ loadStyles(`.l7-marker-container {
285
270
  z-index: 999;
286
271
  pointer-events: none;
287
272
  }
288
-
289
273
  .l7-control-container .l7-right .l7-control:not(.l7-control--hide) {
290
274
  margin-right: 8px;
291
275
  }
292
-
293
276
  .l7-control-container .l7-bottom {
294
277
  bottom: 0;
295
278
  display: flex;
@@ -297,11 +280,9 @@ loadStyles(`.l7-marker-container {
297
280
  z-index: 999;
298
281
  pointer-events: none;
299
282
  }
300
-
301
283
  .l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) {
302
284
  margin-bottom: 8px;
303
285
  }
304
-
305
286
  .l7-control-container .l7-left {
306
287
  left: 0;
307
288
  display: flex;
@@ -309,56 +290,44 @@ loadStyles(`.l7-marker-container {
309
290
  z-index: 999;
310
291
  pointer-events: none;
311
292
  }
312
-
313
293
  .l7-control-container .l7-left .l7-control:not(.l7-control--hide) {
314
294
  margin-left: 8px;
315
295
  }
316
-
317
296
  .l7-control-container .l7-center {
318
297
  position: absolute;
319
298
  display: flex;
320
299
  justify-content: center;
321
300
  }
322
-
323
301
  .l7-control-container .l7-center.l7-top,
324
302
  .l7-control-container .l7-center.l7-bottom {
325
303
  width: 100%;
326
304
  }
327
-
328
305
  .l7-control-container .l7-center.l7-left,
329
306
  .l7-control-container .l7-center.l7-right {
330
307
  height: 100%;
331
308
  }
332
-
333
309
  .l7-control-container .l7-center .l7-control {
334
310
  margin-right: 8px;
335
311
  margin-bottom: 8px;
336
312
  }
337
-
338
313
  .l7-control-container .l7-row {
339
314
  flex-direction: row;
340
315
  }
341
-
342
316
  .l7-control-container .l7-row.l7-top {
343
317
  align-items: flex-start;
344
318
  }
345
-
346
319
  .l7-control-container .l7-row.l7-bottom {
347
320
  align-items: flex-end;
348
321
  }
349
-
350
322
  .l7-control-container .l7-column {
351
323
  flex-direction: column;
352
324
  }
353
-
354
325
  .l7-control-container .l7-column.l7-left {
355
326
  align-items: flex-start;
356
327
  }
357
-
358
328
  .l7-control-container .l7-column.l7-right {
359
329
  align-items: flex-end;
360
330
  }
361
-
362
331
  .l7-button-control {
363
332
  min-width: 28px;
364
333
  height: 28px;
@@ -372,68 +341,55 @@ loadStyles(`.l7-marker-container {
372
341
  justify-content: center;
373
342
  align-items: center;
374
343
  padding: 0 6px;
375
- box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
344
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
376
345
  line-height: 16px;
377
346
  }
378
-
379
347
  .l7-button-control .l7-iconfont {
380
348
  fill: #595959;
381
349
  color: #595959;
382
350
  width: 16px;
383
351
  height: 16px;
384
352
  }
385
-
386
353
  .l7-button-control.l7-button-control--row {
387
354
  padding: 0 16px 0 13px;
388
355
  }
389
-
390
356
  .l7-button-control.l7-button-control--row * + .l7-button-control__text {
391
357
  margin-left: 8px;
392
358
  }
393
-
394
359
  .l7-button-control.l7-button-control--column {
395
360
  height: 44px;
396
361
  flex-direction: column;
397
362
  }
398
-
399
363
  .l7-button-control.l7-button-control--column .l7-iconfont {
400
364
  margin-top: 3px;
401
365
  }
402
-
403
366
  .l7-button-control.l7-button-control--column .l7-button-control__text {
404
367
  margin-top: 3px;
405
368
  font-size: 10px;
406
369
  -webkit-transform: scale(0.83333);
407
370
  transform: scale(0.83333);
408
371
  }
409
-
410
372
  .l7-button-control:not(:disabled):hover {
411
373
  background-color: #f3f3f3;
412
374
  }
413
-
414
375
  .l7-button-control:not(:disabled):active {
415
376
  background-color: #f3f3f3;
416
377
  }
417
-
418
378
  .l7-button-control:disabled {
419
379
  background-color: #fafafa;
420
380
  color: #bdbdbd;
421
381
  cursor: not-allowed;
422
382
  }
423
-
424
383
  .l7-button-control:disabled .l7-iconfont {
425
384
  fill: #bdbdbd;
426
385
  color: #bdbdbd;
427
386
  }
428
-
429
387
  .l7-button-control:disabled:hover {
430
388
  background-color: #fafafa;
431
389
  }
432
-
433
390
  .l7-button-control:disabled:active {
434
391
  background-color: #fafafa;
435
392
  }
436
-
437
393
  .l7-popper {
438
394
  position: absolute;
439
395
  display: flex;
@@ -442,75 +398,63 @@ loadStyles(`.l7-marker-container {
442
398
  z-index: 5;
443
399
  color: #595959;
444
400
  }
445
-
446
401
  .l7-popper.l7-popper-hide {
447
402
  display: none;
448
403
  }
449
-
450
404
  .l7-popper .l7-popper-content {
451
405
  min-height: 28px;
452
406
  background: #fff;
453
407
  border-radius: 2px;
454
- box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
408
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
455
409
  }
456
-
457
410
  .l7-popper .l7-popper-arrow {
458
411
  width: 0;
459
412
  height: 0;
460
413
  border-width: 4px;
461
414
  border-style: solid;
462
- border-color: transparent;
463
- box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
415
+ border-top-color: transparent;
416
+ border-bottom-color: transparent;
417
+ border-left-color: transparent;
418
+ border-right-color: transparent;
419
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
464
420
  }
465
-
466
421
  .l7-popper.l7-popper-left {
467
422
  flex-direction: row;
468
423
  }
469
-
470
424
  .l7-popper.l7-popper-left .l7-popper-arrow {
471
425
  border-left-color: #fff;
472
426
  margin: 10px 0;
473
427
  }
474
-
475
428
  .l7-popper.l7-popper-right {
476
429
  flex-direction: row-reverse;
477
430
  }
478
-
479
431
  .l7-popper.l7-popper-right .l7-popper-arrow {
480
432
  border-right-color: #fff;
481
433
  margin: 10px 0;
482
434
  }
483
-
484
435
  .l7-popper.l7-popper-top {
485
436
  flex-direction: column;
486
437
  }
487
-
488
438
  .l7-popper.l7-popper-top .l7-popper-arrow {
489
439
  border-top-color: #fff;
490
440
  margin: 0 10px;
491
441
  }
492
-
493
442
  .l7-popper.l7-popper-bottom {
494
443
  flex-direction: column-reverse;
495
444
  }
496
-
497
445
  .l7-popper.l7-popper-bottom .l7-popper-arrow {
498
446
  border-bottom-color: #fff;
499
447
  margin: 0 10px;
500
448
  }
501
-
502
449
  .l7-popper.l7-popper-start {
503
450
  align-items: flex-start;
504
451
  }
505
-
506
452
  .l7-popper.l7-popper-end {
507
453
  align-items: flex-end;
508
454
  }
509
-
510
455
  .l7-select-control--normal {
511
456
  padding: 4px 0;
512
457
  }
513
-
514
458
  .l7-select-control--normal .l7-select-control-item {
515
459
  display: flex;
516
460
  align-items: center;
@@ -519,20 +463,16 @@ loadStyles(`.l7-marker-container {
519
463
  font-size: 12px;
520
464
  line-height: 24px;
521
465
  }
522
-
523
466
  .l7-select-control--normal .l7-select-control-item > * + * {
524
467
  margin-left: 6px;
525
468
  }
526
-
527
469
  .l7-select-control--normal .l7-select-control-item input[type='checkbox'] {
528
470
  width: 14px;
529
471
  height: 14px;
530
472
  }
531
-
532
473
  .l7-select-control--normal .l7-select-control-item:hover {
533
474
  background-color: #f3f3f3;
534
475
  }
535
-
536
476
  .l7-select-control--image {
537
477
  display: flex;
538
478
  flex-wrap: wrap;
@@ -541,9 +481,9 @@ loadStyles(`.l7-marker-container {
541
481
  max-width: 460px;
542
482
  max-height: 400px;
543
483
  margin: 12px 0 0 12px;
544
- overflow: hidden auto;
484
+ overflow-x: hidden;
485
+ overflow-y: auto;
545
486
  }
546
-
547
487
  .l7-select-control--image .l7-select-control-item {
548
488
  position: relative;
549
489
  display: flex;
@@ -558,46 +498,37 @@ loadStyles(`.l7-marker-container {
558
498
  border: 1px solid #fff;
559
499
  border-radius: 2px;
560
500
  }
561
-
562
501
  .l7-select-control--image .l7-select-control-item img {
563
502
  width: 100%;
564
503
  height: 80px;
565
504
  }
566
-
567
505
  .l7-select-control--image .l7-select-control-item input[type='checkbox'] {
568
506
  position: absolute;
569
507
  top: 0;
570
508
  right: 0;
571
509
  }
572
-
573
510
  .l7-select-control--image .l7-select-control-item .l7-select-control-item-row {
574
511
  display: flex;
575
512
  align-items: center;
576
513
  justify-content: center;
577
514
  line-height: 26px;
578
515
  }
579
-
580
516
  .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {
581
517
  margin-left: 8px;
582
518
  }
583
-
584
519
  .l7-select-control--image .l7-select-control-item.l7-select-control-item-active {
585
520
  border-color: #0370fe;
586
521
  }
587
-
588
522
  .l7-select-control-item {
589
523
  cursor: pointer;
590
524
  }
591
-
592
525
  .l7-select-control-item input[type='checkbox'] {
593
526
  margin: 0;
594
527
  cursor: pointer;
595
528
  }
596
-
597
529
  .l7-select-control--multiple .l7-select-control-item:hover {
598
530
  background-color: transparent;
599
531
  }
600
-
601
532
  .l7-control-logo {
602
533
  width: 89px;
603
534
  height: 16px;
@@ -606,65 +537,53 @@ loadStyles(`.l7-marker-container {
606
537
  -ms-user-select: none;
607
538
  user-select: none;
608
539
  }
609
-
610
540
  .l7-control-logo img {
611
541
  height: 100%;
612
542
  width: 100%;
613
543
  }
614
-
615
544
  .l7-control-logo .l7-control-logo-link {
616
545
  display: block;
617
546
  cursor: pointer;
618
547
  }
619
-
620
548
  .l7-control-logo .l7-control-logo-link img {
621
549
  cursor: pointer;
622
550
  }
623
-
624
551
  .l7-control-mouse-location {
625
552
  background-color: #fff;
626
553
  border-radius: 2px;
627
- box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
554
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
628
555
  padding: 2px 4px;
629
556
  min-width: 130px;
630
557
  }
631
-
632
558
  .l7-control-zoom {
633
559
  overflow: hidden;
634
560
  border-radius: 2px;
635
- box-shadow: 0 0 20px 0 rgb(0 0 0 / 15%);
561
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
636
562
  }
637
-
638
563
  .l7-control-zoom .l7-button-control {
639
564
  font-size: 16px;
640
565
  border-bottom: 1px solid #f0f0f0;
641
566
  border-radius: 0;
642
567
  box-shadow: 0 0 0;
643
568
  }
644
-
645
569
  .l7-control-zoom .l7-button-control .l7-iconfont {
646
570
  width: 14px;
647
571
  height: 14px;
648
572
  }
649
-
650
573
  .l7-control-zoom .l7-button-control:last-child {
651
574
  border-bottom: 0;
652
575
  }
653
-
654
576
  .l7-control-zoom .l7-control-zoom__number {
655
577
  color: #595959;
656
578
  padding: 0;
657
579
  }
658
-
659
580
  .l7-control-zoom .l7-control-zoom__number:hover {
660
581
  background-color: #fff;
661
582
  }
662
-
663
583
  .l7-control-scale {
664
584
  display: flex;
665
585
  flex-direction: column;
666
586
  }
667
-
668
587
  .l7-control-scale .l7-control-scale-line {
669
588
  box-sizing: border-box;
670
589
  padding: 2px 5px 1px;
@@ -678,22 +597,18 @@ loadStyles(`.l7-marker-container {
678
597
  border-top: 0;
679
598
  transition: width 0.1s;
680
599
  }
681
-
682
600
  .l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {
683
601
  margin-top: -2px;
684
602
  border-top: 2px solid #777;
685
603
  border-bottom: none;
686
604
  }
687
-
688
605
  .l7-right .l7-control-scale {
689
606
  display: flex;
690
607
  align-items: flex-end;
691
608
  }
692
-
693
609
  .l7-right .l7-control-scale .l7-control-scale-line {
694
610
  text-align: right;
695
611
  }
696
-
697
612
  .l7-popup {
698
613
  position: absolute;
699
614
  top: 0;
@@ -703,25 +618,21 @@ loadStyles(`.l7-marker-container {
703
618
  will-change: transform;
704
619
  pointer-events: none;
705
620
  }
706
-
707
621
  .l7-popup.l7-popup-hide {
708
622
  display: none;
709
623
  }
710
-
711
624
  .l7-popup .l7-popup-content {
712
625
  position: relative;
713
626
  padding: 16px;
714
627
  font-size: 14px;
715
628
  background: #fff;
716
629
  border-radius: 3px;
717
- box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
630
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
718
631
  }
719
-
720
632
  .l7-popup .l7-popup-content .l7-popup-content__title {
721
633
  margin-bottom: 8px;
722
634
  font-weight: bold;
723
635
  }
724
-
725
636
  .l7-popup .l7-popup-content .l7-popup-close-button,
726
637
  .l7-popup .l7-popup-content .l7-popup-content__title,
727
638
  .l7-popup .l7-popup-content .l7-popup-content__panel {
@@ -732,7 +643,6 @@ loadStyles(`.l7-marker-container {
732
643
  user-select: text;
733
644
  pointer-events: initial;
734
645
  }
735
-
736
646
  .l7-popup .l7-popup-content .l7-popup-close-button {
737
647
  position: absolute;
738
648
  top: 0;
@@ -748,7 +658,6 @@ loadStyles(`.l7-marker-container {
748
658
  border-radius: 0 3px 0 0;
749
659
  cursor: pointer;
750
660
  }
751
-
752
661
  .l7-popup .l7-popup-tip {
753
662
  position: relative;
754
663
  z-index: 1;
@@ -756,113 +665,93 @@ loadStyles(`.l7-marker-container {
756
665
  height: 0;
757
666
  border: 10px solid transparent;
758
667
  }
759
-
760
668
  .l7-popup.l7-popup-anchor-bottom,
761
669
  .l7-popup.l7-popup-anchor-bottom-left,
762
670
  .l7-popup.l7-popup-anchor-bottom-right {
763
671
  flex-direction: column-reverse;
764
672
  }
765
-
766
673
  .l7-popup.l7-popup-anchor-bottom .l7-popup-tip,
767
674
  .l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,
768
675
  .l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {
769
676
  bottom: 1px;
770
677
  }
771
-
772
678
  .l7-popup.l7-popup-anchor-top,
773
679
  .l7-popup.l7-popup-anchor-top-left,
774
680
  .l7-popup.l7-popup-anchor-top-right {
775
681
  flex-direction: column;
776
682
  }
777
-
778
683
  .l7-popup.l7-popup-anchor-top .l7-popup-tip,
779
684
  .l7-popup.l7-popup-anchor-top-left .l7-popup-tip,
780
685
  .l7-popup.l7-popup-anchor-top-right .l7-popup-tip {
781
686
  top: 1px;
782
687
  }
783
-
784
688
  .l7-popup.l7-popup-anchor-left {
785
689
  flex-direction: row;
786
690
  }
787
-
788
691
  .l7-popup.l7-popup-anchor-right {
789
692
  flex-direction: row-reverse;
790
693
  }
791
-
792
694
  .l7-popup-anchor-top .l7-popup-tip {
793
695
  position: relative;
794
696
  align-self: center;
795
697
  border-top: none;
796
698
  border-bottom-color: #fff;
797
699
  }
798
-
799
700
  .l7-popup-anchor-top-left .l7-popup-tip {
800
701
  align-self: flex-start;
801
702
  border-top: none;
802
703
  border-bottom-color: #fff;
803
704
  border-left: none;
804
705
  }
805
-
806
706
  .l7-popup-anchor-top-right .l7-popup-tip {
807
707
  align-self: flex-end;
808
708
  border-top: none;
809
709
  border-right: none;
810
710
  border-bottom-color: #fff;
811
711
  }
812
-
813
712
  .l7-popup-anchor-bottom .l7-popup-tip {
814
713
  align-self: center;
815
714
  border-top-color: #fff;
816
715
  border-bottom: none;
817
716
  }
818
-
819
717
  .l7-popup-anchor-bottom-left .l7-popup-tip {
820
718
  align-self: flex-start;
821
719
  border-top-color: #fff;
822
720
  border-bottom: none;
823
721
  border-left: none;
824
722
  }
825
-
826
723
  .l7-popup-anchor-bottom-right .l7-popup-tip {
827
724
  align-self: flex-end;
828
725
  border-top-color: #fff;
829
726
  border-right: none;
830
727
  border-bottom: none;
831
728
  }
832
-
833
729
  .l7-popup-anchor-left .l7-popup-tip {
834
730
  align-self: center;
835
731
  border-right-color: #fff;
836
732
  border-left: none;
837
733
  }
838
-
839
734
  .l7-popup-anchor-right .l7-popup-tip {
840
735
  right: 1px;
841
736
  align-self: center;
842
737
  border-right: none;
843
738
  border-left-color: #fff;
844
739
  }
845
-
846
740
  .l7-popup-anchor-top-left .l7-popup-content {
847
741
  border-top-left-radius: 0;
848
742
  }
849
-
850
743
  .l7-popup-anchor-top-right .l7-popup-content {
851
744
  border-top-right-radius: 0;
852
745
  }
853
-
854
746
  .l7-popup-anchor-bottom-left .l7-popup-content {
855
747
  border-bottom-left-radius: 0;
856
748
  }
857
-
858
749
  .l7-popup-anchor-bottom-right .l7-popup-content {
859
750
  border-bottom-right-radius: 0;
860
751
  }
861
-
862
752
  .l7-popup-track-pointer {
863
753
  display: none;
864
754
  }
865
-
866
755
  .l7-popup-track-pointer * {
867
756
  -webkit-user-select: none;
868
757
  -moz-user-select: none;
@@ -870,23 +759,18 @@ loadStyles(`.l7-marker-container {
870
759
  user-select: none;
871
760
  pointer-events: none;
872
761
  }
873
-
874
762
  .l7-map:hover .l7-popup-track-pointer {
875
763
  display: flex;
876
764
  }
877
-
878
765
  .l7-map:active .l7-popup-track-pointer {
879
766
  display: none;
880
767
  }
881
-
882
768
  .l7-layer-popup__row {
883
769
  font-size: 12px;
884
770
  }
885
-
886
771
  .l7-layer-popup__row + .l7-layer-popup__row {
887
772
  margin-top: 4px;
888
773
  }
889
-
890
774
  .l7-control-swipe {
891
775
  position: absolute;
892
776
  top: 50%;
@@ -896,12 +780,10 @@ loadStyles(`.l7-marker-container {
896
780
  transform: translate(-50%, -50%);
897
781
  touch-action: none;
898
782
  }
899
-
900
783
  .l7-control-swipe_hide {
901
784
  display: none;
902
785
  }
903
-
904
- .l7-control-swipe::before {
786
+ .l7-control-swipe:before {
905
787
  position: absolute;
906
788
  top: -5000px;
907
789
  bottom: -5000px;
@@ -913,13 +795,14 @@ loadStyles(`.l7-marker-container {
913
795
  transform: translate(-2px, 0);
914
796
  content: '';
915
797
  }
916
-
917
- .l7-control-swipe.horizontal::before {
918
- inset: 50% -5000px auto;
798
+ .l7-control-swipe.horizontal:before {
799
+ top: 50%;
800
+ right: -5000px;
801
+ bottom: auto;
802
+ left: -5000px;
919
803
  width: auto;
920
804
  height: 4px;
921
805
  }
922
-
923
806
  .l7-control-swipe__button {
924
807
  display: block;
925
808
  width: 28px;
@@ -936,37 +819,32 @@ loadStyles(`.l7-marker-container {
936
819
  border-radius: 2px;
937
820
  outline: none;
938
821
  }
939
-
940
822
  .l7-control-swipe,
941
823
  .l7-control-swipe__button {
942
824
  cursor: ew-resize;
943
825
  }
944
-
945
826
  .l7-control-swipe.horizontal,
946
827
  .l7-control-swipe.horizontal button {
947
828
  cursor: ns-resize;
948
829
  }
949
-
950
- .l7-control-swipe::after,
951
- .l7-control-swipe__button::before,
952
- .l7-control-swipe__button::after {
830
+ .l7-control-swipe:after,
831
+ .l7-control-swipe__button:before,
832
+ .l7-control-swipe__button:after {
953
833
  position: absolute;
954
834
  top: 25%;
955
835
  bottom: 25%;
956
836
  left: 50%;
957
837
  width: 2px;
958
- background: currentcolor;
838
+ background: currentColor;
959
839
  -webkit-transform: translate(-1px, 0);
960
840
  transform: translate(-1px, 0);
961
841
  content: '';
962
842
  }
963
-
964
- .l7-control-swipe__button::after {
843
+ .l7-control-swipe__button:after {
965
844
  -webkit-transform: translateX(4px);
966
845
  transform: translateX(4px);
967
846
  }
968
-
969
- .l7-control-swipe__button::before {
847
+ .l7-control-swipe__button:before {
970
848
  -webkit-transform: translateX(-6px);
971
849
  transform: translateX(-6px);
972
850
  }