@antv/l7-component 2.21.1 → 2.21.3

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 (80) hide show
  1. package/es/assets/iconfont/iconfont.js +6 -6
  2. package/es/constants/index.js +2 -2
  3. package/es/control/baseControl/buttonControl.js +109 -144
  4. package/es/control/baseControl/control.js +212 -258
  5. package/es/control/baseControl/popperControl.js +67 -95
  6. package/es/control/baseControl/selectControl.js +132 -178
  7. package/es/control/exportImage.js +59 -142
  8. package/es/control/fullscreen.js +69 -100
  9. package/es/control/geoLocate.js +37 -84
  10. package/es/control/layerSwitch.js +111 -154
  11. package/es/control/logo.js +43 -69
  12. package/es/control/mapTheme.js +57 -98
  13. package/es/control/mouseLocation.js +37 -69
  14. package/es/control/scale.js +107 -135
  15. package/es/control/swipe.js +297 -389
  16. package/es/control/zoom.js +80 -112
  17. package/es/css/index.css +10 -7
  18. package/es/index.js +675 -1
  19. package/es/marker-layer.js +275 -326
  20. package/es/marker.js +394 -446
  21. package/es/popup/layerPopup.js +277 -321
  22. package/es/popup/popup.js +422 -482
  23. package/es/utils/anchor.js +6 -6
  24. package/es/utils/icon.js +4 -4
  25. package/es/utils/popper.js +180 -196
  26. package/es/utils/screenfull.js +29 -51
  27. package/lib/assets/iconfont/iconfont.js +6 -6
  28. package/lib/constants/index.d.ts +60 -0
  29. package/lib/constants/index.js +2 -2
  30. package/lib/control/baseControl/buttonControl.d.ts +60 -0
  31. package/lib/control/baseControl/buttonControl.js +110 -143
  32. package/lib/control/baseControl/control.d.ts +112 -0
  33. package/lib/control/baseControl/control.js +213 -257
  34. package/lib/control/baseControl/index.d.ts +4 -0
  35. package/lib/control/baseControl/index.js +5 -5
  36. package/lib/control/baseControl/popperControl.d.ts +28 -0
  37. package/lib/control/baseControl/popperControl.js +68 -94
  38. package/lib/control/baseControl/selectControl.d.ts +53 -0
  39. package/lib/control/baseControl/selectControl.js +133 -177
  40. package/lib/control/exportImage.d.ts +19 -0
  41. package/lib/control/exportImage.js +60 -141
  42. package/lib/control/fullscreen.d.ts +20 -0
  43. package/lib/control/fullscreen.js +70 -99
  44. package/lib/control/geoLocate.d.ts +17 -0
  45. package/lib/control/geoLocate.js +38 -83
  46. package/lib/control/layerSwitch.d.ts +27 -0
  47. package/lib/control/layerSwitch.js +112 -153
  48. package/lib/control/logo.d.ts +14 -0
  49. package/lib/control/logo.js +44 -69
  50. package/lib/control/mapTheme.d.ts +11 -0
  51. package/lib/control/mapTheme.js +58 -97
  52. package/lib/control/mouseLocation.d.ts +16 -0
  53. package/lib/control/mouseLocation.js +38 -68
  54. package/lib/control/scale.d.ts +35 -0
  55. package/lib/control/scale.js +108 -134
  56. package/lib/control/swipe.d.ts +66 -0
  57. package/lib/control/swipe.js +298 -388
  58. package/lib/control/zoom.d.ts +39 -0
  59. package/lib/control/zoom.js +81 -111
  60. package/lib/css/index.css +10 -7
  61. package/lib/index.d.ts +19 -0
  62. package/lib/index.js +691 -17
  63. package/lib/interface.d.ts +18 -0
  64. package/lib/marker-layer.d.ts +55 -0
  65. package/lib/marker-layer.js +277 -324
  66. package/lib/marker.d.ts +58 -0
  67. package/lib/marker.js +395 -445
  68. package/lib/popup/layerPopup.d.ts +99 -0
  69. package/lib/popup/layerPopup.js +278 -320
  70. package/lib/popup/popup.d.ts +142 -0
  71. package/lib/popup/popup.js +423 -481
  72. package/lib/utils/anchor.d.ts +22 -0
  73. package/lib/utils/anchor.js +6 -6
  74. package/lib/utils/icon.d.ts +1 -0
  75. package/lib/utils/icon.js +6 -5
  76. package/lib/utils/popper.d.ts +76 -0
  77. package/lib/utils/popper.js +184 -196
  78. package/lib/utils/screenfull.d.ts +2 -0
  79. package/lib/utils/screenfull.js +29 -52
  80. package/package.json +16 -20
package/lib/index.js CHANGED
@@ -22,85 +22,85 @@ var _exportNames = {
22
22
  };
23
23
  Object.defineProperty(exports, "ExportImage", {
24
24
  enumerable: true,
25
- get: function get() {
25
+ get: function () {
26
26
  return _exportImage.ExportImage;
27
27
  }
28
28
  });
29
29
  Object.defineProperty(exports, "Fullscreen", {
30
30
  enumerable: true,
31
- get: function get() {
31
+ get: function () {
32
32
  return _fullscreen.Fullscreen;
33
33
  }
34
34
  });
35
35
  Object.defineProperty(exports, "GeoLocate", {
36
36
  enumerable: true,
37
- get: function get() {
37
+ get: function () {
38
38
  return _geoLocate.GeoLocate;
39
39
  }
40
40
  });
41
41
  Object.defineProperty(exports, "LayerPopup", {
42
42
  enumerable: true,
43
- get: function get() {
43
+ get: function () {
44
44
  return _layerPopup.LayerPopup;
45
45
  }
46
46
  });
47
47
  Object.defineProperty(exports, "LayerSwitch", {
48
48
  enumerable: true,
49
- get: function get() {
49
+ get: function () {
50
50
  return _layerSwitch.LayerSwitch;
51
51
  }
52
52
  });
53
53
  Object.defineProperty(exports, "Logo", {
54
54
  enumerable: true,
55
- get: function get() {
55
+ get: function () {
56
56
  return _logo.Logo;
57
57
  }
58
58
  });
59
59
  Object.defineProperty(exports, "MapTheme", {
60
60
  enumerable: true,
61
- get: function get() {
61
+ get: function () {
62
62
  return _mapTheme.MapTheme;
63
63
  }
64
64
  });
65
65
  Object.defineProperty(exports, "Marker", {
66
66
  enumerable: true,
67
- get: function get() {
67
+ get: function () {
68
68
  return _marker.default;
69
69
  }
70
70
  });
71
71
  Object.defineProperty(exports, "MarkerLayer", {
72
72
  enumerable: true,
73
- get: function get() {
73
+ get: function () {
74
74
  return _markerLayer.default;
75
75
  }
76
76
  });
77
77
  Object.defineProperty(exports, "MouseLocation", {
78
78
  enumerable: true,
79
- get: function get() {
79
+ get: function () {
80
80
  return _mouseLocation.MouseLocation;
81
81
  }
82
82
  });
83
83
  Object.defineProperty(exports, "Popup", {
84
84
  enumerable: true,
85
- get: function get() {
85
+ get: function () {
86
86
  return _popup.Popup;
87
87
  }
88
88
  });
89
89
  Object.defineProperty(exports, "Scale", {
90
90
  enumerable: true,
91
- get: function get() {
91
+ get: function () {
92
92
  return _scale.Scale;
93
93
  }
94
94
  });
95
95
  Object.defineProperty(exports, "Swipe", {
96
96
  enumerable: true,
97
- get: function get() {
97
+ get: function () {
98
98
  return _swipe.Swipe;
99
99
  }
100
100
  });
101
101
  Object.defineProperty(exports, "Zoom", {
102
102
  enumerable: true,
103
- get: function get() {
103
+ get: function () {
104
104
  return _zoom.Zoom;
105
105
  }
106
106
  });
@@ -114,7 +114,7 @@ Object.keys(_baseControl).forEach(function (key) {
114
114
  if (key in exports && exports[key] === _baseControl[key]) return;
115
115
  Object.defineProperty(exports, key, {
116
116
  enumerable: true,
117
- get: function get() {
117
+ get: function () {
118
118
  return _baseControl[key];
119
119
  }
120
120
  });
@@ -136,7 +136,7 @@ Object.keys(_interface).forEach(function (key) {
136
136
  if (key in exports && exports[key] === _interface[key]) return;
137
137
  Object.defineProperty(exports, key, {
138
138
  enumerable: true,
139
- get: function get() {
139
+ get: function () {
140
140
  return _interface[key];
141
141
  }
142
142
  });
@@ -174,4 +174,678 @@ function loadStyles(css, doc) {
174
174
  head.appendChild(style);
175
175
  return style;
176
176
  }
177
- loadStyles(".l7-marker-container {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.l7-marker {\n position: absolute !important;\n top: 0;\n left: 0;\n z-index: 5;\n cursor: pointer;\n}\n.l7-marker-cluster {\n width: 40px;\n height: 40px;\n background-color: rgba(181, 226, 140, 0.6);\n background-clip: padding-box;\n border-radius: 20px;\n}\n.l7-marker-cluster div {\n width: 30px;\n height: 30px;\n margin-top: 5px;\n margin-left: 5px;\n font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif;\n text-align: center;\n background-color: rgba(110, 204, 57, 0.6);\n border-radius: 15px;\n}\n.l7-marker-cluster span {\n line-height: 30px;\n}\n.l7-touch .l7-control-attribution,\n.l7-touch .l7-control-layers,\n.l7-touch .l7-bar {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.l7-touch .l7-control-layers,\n.l7-touch .l7-bar {\n background-clip: padding-box;\n border: 2px solid rgba(0, 0, 0, 0.2);\n}\n.mapboxgl-ctrl-logo,\n.amap-logo {\n display: none !important;\n}\n.l7-select-box {\n border: 3px dashed gray;\n border-radius: 2px;\n position: absolute;\n z-index: 999;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.l7-control-container {\n font: 12px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif;\n}\n.l7-control-container .l7-control {\n position: relative;\n z-index: 999;\n float: left;\n clear: both;\n color: #595959;\n font-size: 12px;\n pointer-events: visiblePainted;\n /* IE 9-10 doesn't have auto */\n pointer-events: auto;\n}\n.l7-control-container .l7-control.l7-control--hide {\n display: none;\n}\n.l7-control-container .l7-top {\n top: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 999;\n pointer-events: none;\n}\n.l7-control-container .l7-top .l7-control:not(.l7-control--hide) {\n margin-top: 8px;\n}\n.l7-control-container .l7-right {\n right: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 999;\n pointer-events: none;\n}\n.l7-control-container .l7-right .l7-control:not(.l7-control--hide) {\n margin-right: 8px;\n}\n.l7-control-container .l7-bottom {\n bottom: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 999;\n pointer-events: none;\n}\n.l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) {\n margin-bottom: 8px;\n}\n.l7-control-container .l7-left {\n left: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 999;\n pointer-events: none;\n}\n.l7-control-container .l7-left .l7-control:not(.l7-control--hide) {\n margin-left: 8px;\n}\n.l7-control-container .l7-center {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.l7-control-container .l7-center.l7-top,\n.l7-control-container .l7-center.l7-bottom {\n width: 100%;\n}\n.l7-control-container .l7-center.l7-left,\n.l7-control-container .l7-center.l7-right {\n height: 100%;\n}\n.l7-control-container .l7-center .l7-control {\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.l7-control-container .l7-row {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.l7-control-container .l7-row.l7-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.l7-control-container .l7-row.l7-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-control-container .l7-column {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-control-container .l7-column.l7-left {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.l7-control-container .l7-column.l7-right {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-button-control {\n min-width: 28px;\n height: 28px;\n background-color: #fff;\n border-width: 0;\n border-radius: 2px;\n outline: 0;\n cursor: pointer;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 0 6px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n line-height: 16px;\n}\n.l7-button-control .l7-iconfont {\n fill: #595959;\n color: #595959;\n width: 16px;\n height: 16px;\n}\n.l7-button-control.l7-button-control--row {\n padding: 0 16px 0 13px;\n}\n.l7-button-control.l7-button-control--row * + .l7-button-control__text {\n margin-left: 8px;\n}\n.l7-button-control.l7-button-control--column {\n height: 44px;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-button-control.l7-button-control--column .l7-iconfont {\n margin-top: 3px;\n}\n.l7-button-control.l7-button-control--column .l7-button-control__text {\n margin-top: 3px;\n font-size: 10px;\n -webkit-transform: scale(0.83333);\n transform: scale(0.83333);\n}\n.l7-button-control:not(:disabled):hover {\n background-color: #f3f3f3;\n}\n.l7-button-control:not(:disabled):active {\n background-color: #f3f3f3;\n}\n.l7-button-control:disabled {\n background-color: #fafafa;\n color: #bdbdbd;\n cursor: not-allowed;\n}\n.l7-button-control:disabled .l7-iconfont {\n fill: #bdbdbd;\n color: #bdbdbd;\n}\n.l7-button-control:disabled:hover {\n background-color: #fafafa;\n}\n.l7-button-control:disabled:active {\n background-color: #fafafa;\n}\n.l7-popper {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n z-index: 5;\n color: #595959;\n}\n.l7-popper.l7-popper-hide {\n display: none;\n}\n.l7-popper .l7-popper-content {\n min-height: 28px;\n background: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n}\n.l7-popper .l7-popper-arrow {\n width: 0;\n height: 0;\n border-width: 4px;\n border-style: solid;\n border-top-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n border-right-color: transparent;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n}\n.l7-popper.l7-popper-left {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.l7-popper.l7-popper-left .l7-popper-arrow {\n border-left-color: #fff;\n margin: 10px 0;\n}\n.l7-popper.l7-popper-right {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.l7-popper.l7-popper-right .l7-popper-arrow {\n border-right-color: #fff;\n margin: 10px 0;\n}\n.l7-popper.l7-popper-top {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-popper.l7-popper-top .l7-popper-arrow {\n border-top-color: #fff;\n margin: 0 10px;\n}\n.l7-popper.l7-popper-bottom {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.l7-popper.l7-popper-bottom .l7-popper-arrow {\n border-bottom-color: #fff;\n margin: 0 10px;\n}\n.l7-popper.l7-popper-start {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.l7-popper.l7-popper-end {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-select-control--normal {\n padding: 4px 0;\n}\n.l7-select-control--normal .l7-select-control-item {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n height: 24px;\n padding: 0 16px;\n font-size: 12px;\n line-height: 24px;\n}\n.l7-select-control--normal .l7-select-control-item > * + * {\n margin-left: 6px;\n}\n.l7-select-control--normal .l7-select-control-item input[type='checkbox'] {\n width: 14px;\n height: 14px;\n}\n.l7-select-control--normal .l7-select-control-item:hover {\n background-color: #f3f3f3;\n}\n.l7-select-control--image {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n max-width: 460px;\n max-height: 400px;\n margin: 12px 0 0 12px;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.l7-select-control--image .l7-select-control-item {\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);\n flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n margin-right: 12px;\n margin-bottom: 12px;\n overflow: hidden;\n font-size: 12px;\n border: 1px solid #fff;\n border-radius: 2px;\n}\n.l7-select-control--image .l7-select-control-item img {\n width: 100%;\n height: 80px;\n}\n.l7-select-control--image .l7-select-control-item input[type='checkbox'] {\n position: absolute;\n top: 0;\n right: 0;\n}\n.l7-select-control--image .l7-select-control-item input[type='radio'] {\n position: absolute;\n top: 0;\n right: 0;\n}\n.l7-select-control--image .l7-select-control-item .l7-select-control-item-row {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n line-height: 26px;\n}\n.l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {\n margin-left: 8px;\n}\n.l7-select-control--image .l7-select-control-item.l7-select-control-item-active {\n border-color: #0370fe;\n}\n.l7-select-control-item {\n cursor: pointer;\n}\n.l7-select-control-item input[type='checkbox'] {\n margin: 0;\n cursor: pointer;\n}\n.l7-select-control--multiple .l7-select-control-item:hover {\n background-color: transparent;\n}\n.l7-control-logo {\n width: 89px;\n height: 16px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.l7-control-logo img {\n height: 100%;\n width: 100%;\n}\n.l7-control-logo .l7-control-logo-link {\n display: block;\n cursor: pointer;\n}\n.l7-control-logo .l7-control-logo-link img {\n cursor: pointer;\n}\n.l7-control-mouse-location {\n background-color: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n padding: 2px 4px;\n min-width: 130px;\n}\n.l7-control-zoom {\n overflow: hidden;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n}\n.l7-control-zoom .l7-button-control {\n font-size: 16px;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 0;\n -webkit-box-shadow: 0 0 0;\n box-shadow: 0 0 0;\n}\n.l7-control-zoom .l7-button-control .l7-iconfont {\n width: 14px;\n height: 14px;\n}\n.l7-control-zoom .l7-button-control:last-child {\n border-bottom: 0;\n}\n.l7-control-zoom .l7-control-zoom__number {\n color: #595959;\n padding: 0;\n}\n.l7-control-zoom .l7-control-zoom__number:hover {\n background-color: #fff;\n}\n.l7-control-scale {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-control-scale .l7-control-scale-line {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding: 2px 5px 1px;\n overflow: hidden;\n color: #595959;\n font-size: 10px;\n line-height: 1.1;\n white-space: nowrap;\n background: #fff;\n border: 2px solid #000;\n border-top: 0;\n -webkit-transition: width 0.1s;\n transition: width 0.1s;\n}\n.l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {\n margin-top: -2px;\n border-top: 2px solid #777;\n border-bottom: none;\n}\n.l7-right .l7-control-scale {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-right .l7-control-scale .l7-control-scale-line {\n text-align: right;\n}\n.l7-popup {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 5;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n will-change: transform;\n pointer-events: none;\n}\n.l7-popup.l7-popup-hide {\n display: none;\n}\n.l7-popup .l7-popup-content {\n position: relative;\n padding: 16px;\n font-size: 14px;\n background: #fff;\n border-radius: 3px;\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n}\n.l7-popup .l7-popup-content .l7-popup-content__title {\n margin-bottom: 8px;\n font-weight: bold;\n}\n.l7-popup .l7-popup-content .l7-popup-close-button,\n.l7-popup .l7-popup-content .l7-popup-content__title,\n.l7-popup .l7-popup-content .l7-popup-content__panel {\n white-space: normal;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n pointer-events: initial;\n}\n.l7-popup .l7-popup-content .l7-popup-close-button {\n position: absolute;\n top: 0;\n right: 0;\n width: 18px;\n height: 18px;\n padding: 0;\n font-size: 14px;\n line-height: 18px;\n text-align: center;\n background-color: transparent;\n border: 0;\n border-radius: 0 3px 0 0;\n cursor: pointer;\n}\n.l7-popup .l7-popup-tip {\n position: relative;\n z-index: 1;\n width: 0;\n height: 0;\n border: 10px solid transparent;\n}\n.l7-popup.l7-popup-anchor-bottom,\n.l7-popup.l7-popup-anchor-bottom-left,\n.l7-popup.l7-popup-anchor-bottom-right {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.l7-popup.l7-popup-anchor-bottom .l7-popup-tip,\n.l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,\n.l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {\n bottom: 1px;\n}\n.l7-popup.l7-popup-anchor-top,\n.l7-popup.l7-popup-anchor-top-left,\n.l7-popup.l7-popup-anchor-top-right {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-popup.l7-popup-anchor-top .l7-popup-tip,\n.l7-popup.l7-popup-anchor-top-left .l7-popup-tip,\n.l7-popup.l7-popup-anchor-top-right .l7-popup-tip {\n top: 1px;\n}\n.l7-popup.l7-popup-anchor-left {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.l7-popup.l7-popup-anchor-right {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.l7-popup-anchor-top .l7-popup-tip {\n position: relative;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-top: none;\n border-bottom-color: #fff;\n}\n.l7-popup-anchor-top-left .l7-popup-tip {\n -webkit-align-self: flex-start;\n -ms-flex-item-align: start;\n align-self: flex-start;\n border-top: none;\n border-bottom-color: #fff;\n border-left: none;\n}\n.l7-popup-anchor-top-right .l7-popup-tip {\n -webkit-align-self: flex-end;\n -ms-flex-item-align: end;\n align-self: flex-end;\n border-top: none;\n border-right: none;\n border-bottom-color: #fff;\n}\n.l7-popup-anchor-bottom .l7-popup-tip {\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-top-color: #fff;\n border-bottom: none;\n}\n.l7-popup-anchor-bottom-left .l7-popup-tip {\n -webkit-align-self: flex-start;\n -ms-flex-item-align: start;\n align-self: flex-start;\n border-top-color: #fff;\n border-bottom: none;\n border-left: none;\n}\n.l7-popup-anchor-bottom-right .l7-popup-tip {\n -webkit-align-self: flex-end;\n -ms-flex-item-align: end;\n align-self: flex-end;\n border-top-color: #fff;\n border-right: none;\n border-bottom: none;\n}\n.l7-popup-anchor-left .l7-popup-tip {\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-right-color: #fff;\n border-left: none;\n}\n.l7-popup-anchor-right .l7-popup-tip {\n right: 1px;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-right: none;\n border-left-color: #fff;\n}\n.l7-popup-anchor-top-left .l7-popup-content {\n border-top-left-radius: 0;\n}\n.l7-popup-anchor-top-right .l7-popup-content {\n border-top-right-radius: 0;\n}\n.l7-popup-anchor-bottom-left .l7-popup-content {\n border-bottom-left-radius: 0;\n}\n.l7-popup-anchor-bottom-right .l7-popup-content {\n border-bottom-right-radius: 0;\n}\n.l7-popup-track-pointer {\n display: none;\n}\n.l7-popup-track-pointer * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n}\n.l7-map:hover .l7-popup-track-pointer {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.l7-map:active .l7-popup-track-pointer {\n display: none;\n}\n.l7-layer-popup__row {\n font-size: 12px;\n}\n.l7-layer-popup__row + .l7-layer-popup__row {\n margin-top: 4px;\n}\n.l7-control-swipe {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 6;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -ms-touch-action: none;\n touch-action: none;\n}\n.l7-control-swipe_hide {\n display: none;\n}\n.l7-control-swipe:before {\n position: absolute;\n top: -5000px;\n bottom: -5000px;\n left: 50%;\n z-index: -1;\n width: 4px;\n background: #fff;\n -webkit-transform: translate(-2px, 0);\n transform: translate(-2px, 0);\n content: '';\n}\n.l7-control-swipe.horizontal:before {\n top: 50%;\n right: -5000px;\n bottom: auto;\n left: -5000px;\n width: auto;\n height: 4px;\n}\n.l7-control-swipe__button {\n display: block;\n width: 28px;\n height: 28px;\n margin: 0;\n padding: 0;\n color: #595959;\n font-weight: bold;\n font-size: inherit;\n text-align: center;\n text-decoration: none;\n background-color: #fff;\n border: none;\n border-radius: 2px;\n outline: none;\n}\n.l7-control-swipe,\n.l7-control-swipe__button {\n cursor: ew-resize;\n}\n.l7-control-swipe.horizontal,\n.l7-control-swipe.horizontal button {\n cursor: ns-resize;\n}\n.l7-control-swipe:after,\n.l7-control-swipe__button:before,\n.l7-control-swipe__button:after {\n position: absolute;\n top: 25%;\n bottom: 25%;\n left: 50%;\n width: 2px;\n background: currentColor;\n -webkit-transform: translate(-1px, 0);\n transform: translate(-1px, 0);\n content: '';\n}\n.l7-control-swipe__button:after {\n -webkit-transform: translateX(4px);\n transform: translateX(4px);\n}\n.l7-control-swipe__button:before {\n -webkit-transform: translateX(-6px);\n transform: translateX(-6px);\n}\n"); // import './css/index.less';
177
+ loadStyles(`.l7-marker-container {
178
+ position: absolute;
179
+ width: 100%;
180
+ height: 100%;
181
+ overflow: hidden;
182
+ }
183
+ .l7-marker {
184
+ position: absolute !important;
185
+ top: 0;
186
+ left: 0;
187
+ z-index: 5;
188
+ cursor: pointer;
189
+ }
190
+ .l7-marker-cluster {
191
+ width: 40px;
192
+ height: 40px;
193
+ background-color: rgba(181, 226, 140, 0.6);
194
+ background-clip: padding-box;
195
+ border-radius: 20px;
196
+ }
197
+ .l7-marker-cluster div {
198
+ width: 30px;
199
+ height: 30px;
200
+ margin-top: 5px;
201
+ margin-left: 5px;
202
+ font:
203
+ 12px 'Helvetica Neue',
204
+ Arial,
205
+ Helvetica,
206
+ sans-serif;
207
+ text-align: center;
208
+ background-color: rgba(110, 204, 57, 0.6);
209
+ border-radius: 15px;
210
+ }
211
+ .l7-marker-cluster span {
212
+ line-height: 30px;
213
+ }
214
+ .l7-touch .l7-control-attribution,
215
+ .l7-touch .l7-control-layers,
216
+ .l7-touch .l7-bar {
217
+ box-shadow: none;
218
+ }
219
+ .l7-touch .l7-control-layers,
220
+ .l7-touch .l7-bar {
221
+ background-clip: padding-box;
222
+ border: 2px solid rgba(0, 0, 0, 0.2);
223
+ }
224
+ .mapboxgl-ctrl-logo,
225
+ .amap-logo {
226
+ display: none !important;
227
+ }
228
+ .l7-select-box {
229
+ border: 3px dashed gray;
230
+ border-radius: 2px;
231
+ position: absolute;
232
+ z-index: 999;
233
+ box-sizing: border-box;
234
+ }
235
+ .l7-control-container {
236
+ font:
237
+ 12px/1.5 'Helvetica Neue',
238
+ Arial,
239
+ Helvetica,
240
+ sans-serif;
241
+ }
242
+ .l7-control-container .l7-control {
243
+ position: relative;
244
+ z-index: 999;
245
+ float: left;
246
+ clear: both;
247
+ color: #595959;
248
+ font-size: 12px;
249
+ pointer-events: visiblePainted;
250
+ /* IE 9-10 doesn't have auto */
251
+ pointer-events: auto;
252
+ }
253
+ .l7-control-container .l7-control.l7-control--hide {
254
+ display: none;
255
+ }
256
+ .l7-control-container .l7-top {
257
+ top: 0;
258
+ display: flex;
259
+ position: absolute;
260
+ z-index: 999;
261
+ pointer-events: none;
262
+ }
263
+ .l7-control-container .l7-top .l7-control:not(.l7-control--hide) {
264
+ margin-top: 8px;
265
+ }
266
+ .l7-control-container .l7-right {
267
+ right: 0;
268
+ display: flex;
269
+ position: absolute;
270
+ z-index: 999;
271
+ pointer-events: none;
272
+ }
273
+ .l7-control-container .l7-right .l7-control:not(.l7-control--hide) {
274
+ margin-right: 8px;
275
+ }
276
+ .l7-control-container .l7-bottom {
277
+ bottom: 0;
278
+ display: flex;
279
+ position: absolute;
280
+ z-index: 999;
281
+ pointer-events: none;
282
+ }
283
+ .l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) {
284
+ margin-bottom: 8px;
285
+ }
286
+ .l7-control-container .l7-left {
287
+ left: 0;
288
+ display: flex;
289
+ position: absolute;
290
+ z-index: 999;
291
+ pointer-events: none;
292
+ }
293
+ .l7-control-container .l7-left .l7-control:not(.l7-control--hide) {
294
+ margin-left: 8px;
295
+ }
296
+ .l7-control-container .l7-center {
297
+ position: absolute;
298
+ display: flex;
299
+ justify-content: center;
300
+ }
301
+ .l7-control-container .l7-center.l7-top,
302
+ .l7-control-container .l7-center.l7-bottom {
303
+ width: 100%;
304
+ }
305
+ .l7-control-container .l7-center.l7-left,
306
+ .l7-control-container .l7-center.l7-right {
307
+ height: 100%;
308
+ }
309
+ .l7-control-container .l7-center .l7-control {
310
+ margin-right: 8px;
311
+ margin-bottom: 8px;
312
+ }
313
+ .l7-control-container .l7-row {
314
+ flex-direction: row;
315
+ }
316
+ .l7-control-container .l7-row.l7-top {
317
+ align-items: flex-start;
318
+ }
319
+ .l7-control-container .l7-row.l7-bottom {
320
+ align-items: flex-end;
321
+ }
322
+ .l7-control-container .l7-column {
323
+ flex-direction: column;
324
+ }
325
+ .l7-control-container .l7-column.l7-left {
326
+ align-items: flex-start;
327
+ }
328
+ .l7-control-container .l7-column.l7-right {
329
+ align-items: flex-end;
330
+ }
331
+ .l7-button-control {
332
+ min-width: 28px;
333
+ height: 28px;
334
+ background-color: #fff;
335
+ border-width: 0;
336
+ border-radius: 2px;
337
+ outline: 0;
338
+ cursor: pointer;
339
+ transition: all 0.2s;
340
+ display: flex;
341
+ justify-content: center;
342
+ align-items: center;
343
+ padding: 0 6px;
344
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
345
+ line-height: 16px;
346
+ }
347
+ .l7-button-control .l7-iconfont {
348
+ fill: #595959;
349
+ color: #595959;
350
+ width: 16px;
351
+ height: 16px;
352
+ }
353
+ .l7-button-control.l7-button-control--row {
354
+ padding: 0 16px 0 13px;
355
+ }
356
+ .l7-button-control.l7-button-control--row * + .l7-button-control__text {
357
+ margin-left: 8px;
358
+ }
359
+ .l7-button-control.l7-button-control--column {
360
+ height: 44px;
361
+ flex-direction: column;
362
+ }
363
+ .l7-button-control.l7-button-control--column .l7-iconfont {
364
+ margin-top: 3px;
365
+ }
366
+ .l7-button-control.l7-button-control--column .l7-button-control__text {
367
+ margin-top: 3px;
368
+ font-size: 10px;
369
+ -webkit-transform: scale(0.83333);
370
+ transform: scale(0.83333);
371
+ }
372
+ .l7-button-control:not(:disabled):hover {
373
+ background-color: #f3f3f3;
374
+ }
375
+ .l7-button-control:not(:disabled):active {
376
+ background-color: #f3f3f3;
377
+ }
378
+ .l7-button-control:disabled {
379
+ background-color: #fafafa;
380
+ color: #bdbdbd;
381
+ cursor: not-allowed;
382
+ }
383
+ .l7-button-control:disabled .l7-iconfont {
384
+ fill: #bdbdbd;
385
+ color: #bdbdbd;
386
+ }
387
+ .l7-button-control:disabled:hover {
388
+ background-color: #fafafa;
389
+ }
390
+ .l7-button-control:disabled:active {
391
+ background-color: #fafafa;
392
+ }
393
+ .l7-popper {
394
+ position: absolute;
395
+ display: flex;
396
+ justify-content: center;
397
+ align-items: center;
398
+ z-index: 5;
399
+ color: #595959;
400
+ }
401
+ .l7-popper.l7-popper-hide {
402
+ display: none;
403
+ }
404
+ .l7-popper .l7-popper-content {
405
+ min-height: 28px;
406
+ background: #fff;
407
+ border-radius: 2px;
408
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
409
+ }
410
+ .l7-popper .l7-popper-arrow {
411
+ width: 0;
412
+ height: 0;
413
+ border-width: 4px;
414
+ border-style: solid;
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);
420
+ }
421
+ .l7-popper.l7-popper-left {
422
+ flex-direction: row;
423
+ }
424
+ .l7-popper.l7-popper-left .l7-popper-arrow {
425
+ border-left-color: #fff;
426
+ margin: 10px 0;
427
+ }
428
+ .l7-popper.l7-popper-right {
429
+ flex-direction: row-reverse;
430
+ }
431
+ .l7-popper.l7-popper-right .l7-popper-arrow {
432
+ border-right-color: #fff;
433
+ margin: 10px 0;
434
+ }
435
+ .l7-popper.l7-popper-top {
436
+ flex-direction: column;
437
+ }
438
+ .l7-popper.l7-popper-top .l7-popper-arrow {
439
+ border-top-color: #fff;
440
+ margin: 0 10px;
441
+ }
442
+ .l7-popper.l7-popper-bottom {
443
+ flex-direction: column-reverse;
444
+ }
445
+ .l7-popper.l7-popper-bottom .l7-popper-arrow {
446
+ border-bottom-color: #fff;
447
+ margin: 0 10px;
448
+ }
449
+ .l7-popper.l7-popper-start {
450
+ align-items: flex-start;
451
+ }
452
+ .l7-popper.l7-popper-end {
453
+ align-items: flex-end;
454
+ }
455
+ .l7-select-control--normal {
456
+ padding: 4px 0;
457
+ }
458
+ .l7-select-control--normal .l7-select-control-item {
459
+ display: flex;
460
+ align-items: center;
461
+ height: 24px;
462
+ padding: 0 16px;
463
+ font-size: 12px;
464
+ line-height: 24px;
465
+ }
466
+ .l7-select-control--normal .l7-select-control-item > * + * {
467
+ margin-left: 6px;
468
+ }
469
+ .l7-select-control--normal .l7-select-control-item input[type='checkbox'] {
470
+ width: 14px;
471
+ height: 14px;
472
+ }
473
+ .l7-select-control--normal .l7-select-control-item:hover {
474
+ background-color: #f3f3f3;
475
+ }
476
+ .l7-select-control--image {
477
+ display: flex;
478
+ flex-wrap: wrap;
479
+ align-items: flex-start;
480
+ box-sizing: content-box;
481
+ max-width: 460px;
482
+ max-height: 400px;
483
+ margin: 12px 0 0 12px;
484
+ overflow-x: hidden;
485
+ overflow-y: auto;
486
+ }
487
+ .l7-select-control--image .l7-select-control-item {
488
+ position: relative;
489
+ display: flex;
490
+ flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);
491
+ flex-direction: column;
492
+ justify-content: center;
493
+ box-sizing: content-box;
494
+ margin-right: 12px;
495
+ margin-bottom: 12px;
496
+ overflow: hidden;
497
+ font-size: 12px;
498
+ border: 1px solid #fff;
499
+ border-radius: 2px;
500
+ }
501
+ .l7-select-control--image .l7-select-control-item img {
502
+ width: 100%;
503
+ height: 80px;
504
+ }
505
+ .l7-select-control--image .l7-select-control-item input[type='checkbox'] {
506
+ position: absolute;
507
+ top: 0;
508
+ right: 0;
509
+ }
510
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row {
511
+ display: flex;
512
+ align-items: center;
513
+ justify-content: center;
514
+ line-height: 26px;
515
+ }
516
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {
517
+ margin-left: 8px;
518
+ }
519
+ .l7-select-control--image .l7-select-control-item.l7-select-control-item-active {
520
+ border-color: #0370fe;
521
+ }
522
+ .l7-select-control-item {
523
+ cursor: pointer;
524
+ }
525
+ .l7-select-control-item input[type='checkbox'] {
526
+ margin: 0;
527
+ cursor: pointer;
528
+ }
529
+ .l7-select-control--multiple .l7-select-control-item:hover {
530
+ background-color: transparent;
531
+ }
532
+ .l7-control-logo {
533
+ width: 89px;
534
+ height: 16px;
535
+ -webkit-user-select: none;
536
+ -moz-user-select: none;
537
+ -ms-user-select: none;
538
+ user-select: none;
539
+ }
540
+ .l7-control-logo img {
541
+ height: 100%;
542
+ width: 100%;
543
+ }
544
+ .l7-control-logo .l7-control-logo-link {
545
+ display: block;
546
+ cursor: pointer;
547
+ }
548
+ .l7-control-logo .l7-control-logo-link img {
549
+ cursor: pointer;
550
+ }
551
+ .l7-control-mouse-location {
552
+ background-color: #fff;
553
+ border-radius: 2px;
554
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
555
+ padding: 2px 4px;
556
+ min-width: 130px;
557
+ }
558
+ .l7-control-zoom {
559
+ overflow: hidden;
560
+ border-radius: 2px;
561
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
562
+ }
563
+ .l7-control-zoom .l7-button-control {
564
+ font-size: 16px;
565
+ border-bottom: 1px solid #f0f0f0;
566
+ border-radius: 0;
567
+ box-shadow: 0 0 0;
568
+ }
569
+ .l7-control-zoom .l7-button-control .l7-iconfont {
570
+ width: 14px;
571
+ height: 14px;
572
+ }
573
+ .l7-control-zoom .l7-button-control:last-child {
574
+ border-bottom: 0;
575
+ }
576
+ .l7-control-zoom .l7-control-zoom__number {
577
+ color: #595959;
578
+ padding: 0;
579
+ }
580
+ .l7-control-zoom .l7-control-zoom__number:hover {
581
+ background-color: #fff;
582
+ }
583
+ .l7-control-scale {
584
+ display: flex;
585
+ flex-direction: column;
586
+ }
587
+ .l7-control-scale .l7-control-scale-line {
588
+ box-sizing: border-box;
589
+ padding: 2px 5px 1px;
590
+ overflow: hidden;
591
+ color: #595959;
592
+ font-size: 10px;
593
+ line-height: 1.1;
594
+ white-space: nowrap;
595
+ background: #fff;
596
+ border: 2px solid #000;
597
+ border-top: 0;
598
+ transition: width 0.1s;
599
+ }
600
+ .l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {
601
+ margin-top: -2px;
602
+ border-top: 2px solid #777;
603
+ border-bottom: none;
604
+ }
605
+ .l7-right .l7-control-scale {
606
+ display: flex;
607
+ align-items: flex-end;
608
+ }
609
+ .l7-right .l7-control-scale .l7-control-scale-line {
610
+ text-align: right;
611
+ }
612
+ .l7-popup {
613
+ position: absolute;
614
+ top: 0;
615
+ left: 0;
616
+ z-index: 5;
617
+ display: flex;
618
+ will-change: transform;
619
+ pointer-events: none;
620
+ }
621
+ .l7-popup.l7-popup-hide {
622
+ display: none;
623
+ }
624
+ .l7-popup .l7-popup-content {
625
+ position: relative;
626
+ padding: 16px;
627
+ font-size: 14px;
628
+ background: #fff;
629
+ border-radius: 3px;
630
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
631
+ }
632
+ .l7-popup .l7-popup-content .l7-popup-content__title {
633
+ margin-bottom: 8px;
634
+ font-weight: bold;
635
+ }
636
+ .l7-popup .l7-popup-content .l7-popup-close-button,
637
+ .l7-popup .l7-popup-content .l7-popup-content__title,
638
+ .l7-popup .l7-popup-content .l7-popup-content__panel {
639
+ white-space: normal;
640
+ -webkit-user-select: text;
641
+ -moz-user-select: text;
642
+ -ms-user-select: text;
643
+ user-select: text;
644
+ pointer-events: initial;
645
+ }
646
+ .l7-popup .l7-popup-content .l7-popup-close-button {
647
+ position: absolute;
648
+ top: 0;
649
+ right: 0;
650
+ width: 18px;
651
+ height: 18px;
652
+ padding: 0;
653
+ font-size: 14px;
654
+ line-height: 18px;
655
+ text-align: center;
656
+ background-color: transparent;
657
+ border: 0;
658
+ border-radius: 0 3px 0 0;
659
+ cursor: pointer;
660
+ }
661
+ .l7-popup .l7-popup-tip {
662
+ position: relative;
663
+ z-index: 1;
664
+ width: 0;
665
+ height: 0;
666
+ border: 10px solid transparent;
667
+ }
668
+ .l7-popup.l7-popup-anchor-bottom,
669
+ .l7-popup.l7-popup-anchor-bottom-left,
670
+ .l7-popup.l7-popup-anchor-bottom-right {
671
+ flex-direction: column-reverse;
672
+ }
673
+ .l7-popup.l7-popup-anchor-bottom .l7-popup-tip,
674
+ .l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,
675
+ .l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {
676
+ bottom: 1px;
677
+ }
678
+ .l7-popup.l7-popup-anchor-top,
679
+ .l7-popup.l7-popup-anchor-top-left,
680
+ .l7-popup.l7-popup-anchor-top-right {
681
+ flex-direction: column;
682
+ }
683
+ .l7-popup.l7-popup-anchor-top .l7-popup-tip,
684
+ .l7-popup.l7-popup-anchor-top-left .l7-popup-tip,
685
+ .l7-popup.l7-popup-anchor-top-right .l7-popup-tip {
686
+ top: 1px;
687
+ }
688
+ .l7-popup.l7-popup-anchor-left {
689
+ flex-direction: row;
690
+ }
691
+ .l7-popup.l7-popup-anchor-right {
692
+ flex-direction: row-reverse;
693
+ }
694
+ .l7-popup-anchor-top .l7-popup-tip {
695
+ position: relative;
696
+ align-self: center;
697
+ border-top: none;
698
+ border-bottom-color: #fff;
699
+ }
700
+ .l7-popup-anchor-top-left .l7-popup-tip {
701
+ align-self: flex-start;
702
+ border-top: none;
703
+ border-bottom-color: #fff;
704
+ border-left: none;
705
+ }
706
+ .l7-popup-anchor-top-right .l7-popup-tip {
707
+ align-self: flex-end;
708
+ border-top: none;
709
+ border-right: none;
710
+ border-bottom-color: #fff;
711
+ }
712
+ .l7-popup-anchor-bottom .l7-popup-tip {
713
+ align-self: center;
714
+ border-top-color: #fff;
715
+ border-bottom: none;
716
+ }
717
+ .l7-popup-anchor-bottom-left .l7-popup-tip {
718
+ align-self: flex-start;
719
+ border-top-color: #fff;
720
+ border-bottom: none;
721
+ border-left: none;
722
+ }
723
+ .l7-popup-anchor-bottom-right .l7-popup-tip {
724
+ align-self: flex-end;
725
+ border-top-color: #fff;
726
+ border-right: none;
727
+ border-bottom: none;
728
+ }
729
+ .l7-popup-anchor-left .l7-popup-tip {
730
+ align-self: center;
731
+ border-right-color: #fff;
732
+ border-left: none;
733
+ }
734
+ .l7-popup-anchor-right .l7-popup-tip {
735
+ right: 1px;
736
+ align-self: center;
737
+ border-right: none;
738
+ border-left-color: #fff;
739
+ }
740
+ .l7-popup-anchor-top-left .l7-popup-content {
741
+ border-top-left-radius: 0;
742
+ }
743
+ .l7-popup-anchor-top-right .l7-popup-content {
744
+ border-top-right-radius: 0;
745
+ }
746
+ .l7-popup-anchor-bottom-left .l7-popup-content {
747
+ border-bottom-left-radius: 0;
748
+ }
749
+ .l7-popup-anchor-bottom-right .l7-popup-content {
750
+ border-bottom-right-radius: 0;
751
+ }
752
+ .l7-popup-track-pointer {
753
+ display: none;
754
+ }
755
+ .l7-popup-track-pointer * {
756
+ -webkit-user-select: none;
757
+ -moz-user-select: none;
758
+ -ms-user-select: none;
759
+ user-select: none;
760
+ pointer-events: none;
761
+ }
762
+ .l7-map:hover .l7-popup-track-pointer {
763
+ display: flex;
764
+ }
765
+ .l7-map:active .l7-popup-track-pointer {
766
+ display: none;
767
+ }
768
+ .l7-layer-popup__row {
769
+ font-size: 12px;
770
+ }
771
+ .l7-layer-popup__row + .l7-layer-popup__row {
772
+ margin-top: 4px;
773
+ }
774
+ .l7-control-swipe {
775
+ position: absolute;
776
+ top: 50%;
777
+ left: 50%;
778
+ z-index: 6;
779
+ -webkit-transform: translate(-50%, -50%);
780
+ transform: translate(-50%, -50%);
781
+ touch-action: none;
782
+ }
783
+ .l7-control-swipe_hide {
784
+ display: none;
785
+ }
786
+ .l7-control-swipe:before {
787
+ position: absolute;
788
+ top: -5000px;
789
+ bottom: -5000px;
790
+ left: 50%;
791
+ z-index: -1;
792
+ width: 4px;
793
+ background: #fff;
794
+ -webkit-transform: translate(-2px, 0);
795
+ transform: translate(-2px, 0);
796
+ content: '';
797
+ }
798
+ .l7-control-swipe.horizontal:before {
799
+ top: 50%;
800
+ right: -5000px;
801
+ bottom: auto;
802
+ left: -5000px;
803
+ width: auto;
804
+ height: 4px;
805
+ }
806
+ .l7-control-swipe__button {
807
+ display: block;
808
+ width: 28px;
809
+ height: 28px;
810
+ margin: 0;
811
+ padding: 0;
812
+ color: #595959;
813
+ font-weight: bold;
814
+ font-size: inherit;
815
+ text-align: center;
816
+ text-decoration: none;
817
+ background-color: #fff;
818
+ border: none;
819
+ border-radius: 2px;
820
+ outline: none;
821
+ }
822
+ .l7-control-swipe,
823
+ .l7-control-swipe__button {
824
+ cursor: ew-resize;
825
+ }
826
+ .l7-control-swipe.horizontal,
827
+ .l7-control-swipe.horizontal button {
828
+ cursor: ns-resize;
829
+ }
830
+ .l7-control-swipe:after,
831
+ .l7-control-swipe__button:before,
832
+ .l7-control-swipe__button:after {
833
+ position: absolute;
834
+ top: 25%;
835
+ bottom: 25%;
836
+ left: 50%;
837
+ width: 2px;
838
+ background: currentColor;
839
+ -webkit-transform: translate(-1px, 0);
840
+ transform: translate(-1px, 0);
841
+ content: '';
842
+ }
843
+ .l7-control-swipe__button:after {
844
+ -webkit-transform: translateX(4px);
845
+ transform: translateX(4px);
846
+ }
847
+ .l7-control-swipe__button:before {
848
+ -webkit-transform: translateX(-6px);
849
+ transform: translateX(-6px);
850
+ }
851
+ `); // import './css/index.less';