@antv/l7-component 2.21.0 → 2.21.2

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