@antv/l7-component 2.25.7 → 2.25.10

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 (151) hide show
  1. package/es/assets/iconfont/iconfont.d.ts +21 -0
  2. package/es/assets/iconfont/iconfont.js +61 -0
  3. package/es/constants/index.d.ts +60 -0
  4. package/es/constants/index.js +60 -0
  5. package/es/control/baseControl/buttonControl.d.ts +60 -0
  6. package/es/control/baseControl/buttonControl.js +142 -0
  7. package/es/control/baseControl/control.d.ts +112 -0
  8. package/es/control/baseControl/control.js +256 -0
  9. package/es/control/baseControl/index.d.ts +4 -0
  10. package/es/control/baseControl/index.js +4 -0
  11. package/es/control/baseControl/popperControl.d.ts +28 -0
  12. package/es/control/baseControl/popperControl.js +92 -0
  13. package/es/control/baseControl/selectControl.d.ts +53 -0
  14. package/es/control/baseControl/selectControl.js +173 -0
  15. package/es/control/exportImage.d.ts +19 -0
  16. package/es/control/exportImage.js +73 -0
  17. package/es/control/fullscreen.d.ts +20 -0
  18. package/es/control/fullscreen.js +88 -0
  19. package/es/control/geoLocate.d.ts +17 -0
  20. package/es/control/geoLocate.js +60 -0
  21. package/es/control/layerSwitch.d.ts +27 -0
  22. package/es/control/layerSwitch.js +155 -0
  23. package/es/control/logo.d.ts +14 -0
  24. package/es/control/logo.js +49 -0
  25. package/es/control/mapTheme.d.ts +11 -0
  26. package/es/control/mapTheme.js +69 -0
  27. package/es/control/mouseLocation.d.ts +16 -0
  28. package/es/control/mouseLocation.js +52 -0
  29. package/es/control/scale.d.ts +35 -0
  30. package/es/control/scale.js +121 -0
  31. package/es/control/swipe.d.ts +66 -0
  32. package/es/control/swipe.js +392 -0
  33. package/es/control/zoom.d.ts +39 -0
  34. package/es/control/zoom.js +100 -0
  35. package/es/css/button.less +77 -0
  36. package/es/css/control.less +82 -0
  37. package/es/css/index.css +653 -0
  38. package/es/css/index.less +13 -0
  39. package/es/css/l7.less +69 -0
  40. package/es/css/layerPopup.less +9 -0
  41. package/es/css/logo.less +21 -0
  42. package/es/css/mouseLocation.less +9 -0
  43. package/es/css/popper.less +74 -0
  44. package/es/css/popup.less +176 -0
  45. package/es/css/scale.less +37 -0
  46. package/es/css/select.less +96 -0
  47. package/es/css/swipe.less +80 -0
  48. package/es/css/variables.less +29 -0
  49. package/es/css/zoom.less +34 -0
  50. package/es/images/layers.png +0 -0
  51. package/es/images/layers.svg +1 -0
  52. package/es/images/logo.png +0 -0
  53. package/es/images/quanping.svg +12 -0
  54. package/es/index.d.ts +19 -0
  55. package/es/index.js +717 -0
  56. package/es/interface.d.ts +29 -0
  57. package/es/interface.js +1 -0
  58. package/es/marker-layer.d.ts +46 -0
  59. package/es/marker-layer.js +509 -0
  60. package/es/marker.d.ts +66 -0
  61. package/es/marker.js +495 -0
  62. package/es/popup/layerPopup.d.ts +105 -0
  63. package/es/popup/layerPopup.js +341 -0
  64. package/es/popup/popup.d.ts +147 -0
  65. package/es/popup/popup.js +587 -0
  66. package/es/utils/anchor.d.ts +22 -0
  67. package/es/utils/anchor.js +31 -0
  68. package/es/utils/eventManager.d.ts +42 -0
  69. package/es/utils/eventManager.js +84 -0
  70. package/es/utils/icon.d.ts +1 -0
  71. package/es/utils/icon.js +12 -0
  72. package/es/utils/popper.d.ts +76 -0
  73. package/es/utils/popper.js +257 -0
  74. package/es/utils/screenfull.d.ts +2 -0
  75. package/es/utils/screenfull.js +106 -0
  76. package/lib/assets/iconfont/iconfont.d.ts +21 -0
  77. package/lib/assets/iconfont/iconfont.js +68 -0
  78. package/lib/constants/index.d.ts +60 -0
  79. package/lib/constants/index.js +66 -0
  80. package/lib/control/baseControl/buttonControl.d.ts +60 -0
  81. package/lib/control/baseControl/buttonControl.js +149 -0
  82. package/lib/control/baseControl/control.d.ts +112 -0
  83. package/lib/control/baseControl/control.js +269 -0
  84. package/lib/control/baseControl/index.d.ts +4 -0
  85. package/lib/control/baseControl/index.js +39 -0
  86. package/lib/control/baseControl/popperControl.d.ts +28 -0
  87. package/lib/control/baseControl/popperControl.js +99 -0
  88. package/lib/control/baseControl/selectControl.d.ts +53 -0
  89. package/lib/control/baseControl/selectControl.js +180 -0
  90. package/lib/control/exportImage.d.ts +19 -0
  91. package/lib/control/exportImage.js +80 -0
  92. package/lib/control/fullscreen.d.ts +20 -0
  93. package/lib/control/fullscreen.js +95 -0
  94. package/lib/control/geoLocate.d.ts +17 -0
  95. package/lib/control/geoLocate.js +67 -0
  96. package/lib/control/layerSwitch.d.ts +27 -0
  97. package/lib/control/layerSwitch.js +162 -0
  98. package/lib/control/logo.d.ts +14 -0
  99. package/lib/control/logo.js +55 -0
  100. package/lib/control/mapTheme.d.ts +11 -0
  101. package/lib/control/mapTheme.js +76 -0
  102. package/lib/control/mouseLocation.d.ts +16 -0
  103. package/lib/control/mouseLocation.js +59 -0
  104. package/lib/control/scale.d.ts +35 -0
  105. package/lib/control/scale.js +128 -0
  106. package/lib/control/swipe.d.ts +66 -0
  107. package/lib/control/swipe.js +399 -0
  108. package/lib/control/zoom.d.ts +39 -0
  109. package/lib/control/zoom.js +107 -0
  110. package/lib/css/button.less +77 -0
  111. package/lib/css/control.less +82 -0
  112. package/lib/css/index.css +653 -0
  113. package/lib/css/index.less +13 -0
  114. package/lib/css/l7.less +69 -0
  115. package/lib/css/layerPopup.less +9 -0
  116. package/lib/css/logo.less +21 -0
  117. package/lib/css/mouseLocation.less +9 -0
  118. package/lib/css/popper.less +74 -0
  119. package/lib/css/popup.less +176 -0
  120. package/lib/css/scale.less +37 -0
  121. package/lib/css/select.less +96 -0
  122. package/lib/css/swipe.less +80 -0
  123. package/lib/css/variables.less +29 -0
  124. package/lib/css/zoom.less +34 -0
  125. package/lib/images/layers.png +0 -0
  126. package/lib/images/layers.svg +1 -0
  127. package/lib/images/logo.png +0 -0
  128. package/lib/images/quanping.svg +12 -0
  129. package/lib/index.d.ts +19 -0
  130. package/lib/index.js +844 -0
  131. package/lib/interface.d.ts +29 -0
  132. package/lib/interface.js +5 -0
  133. package/lib/marker-layer.d.ts +46 -0
  134. package/lib/marker-layer.js +518 -0
  135. package/lib/marker.d.ts +66 -0
  136. package/lib/marker.js +502 -0
  137. package/lib/popup/layerPopup.d.ts +105 -0
  138. package/lib/popup/layerPopup.js +348 -0
  139. package/lib/popup/popup.d.ts +147 -0
  140. package/lib/popup/popup.js +594 -0
  141. package/lib/utils/anchor.d.ts +22 -0
  142. package/lib/utils/anchor.js +38 -0
  143. package/lib/utils/eventManager.d.ts +42 -0
  144. package/lib/utils/eventManager.js +92 -0
  145. package/lib/utils/icon.d.ts +1 -0
  146. package/lib/utils/icon.js +19 -0
  147. package/lib/utils/popper.d.ts +76 -0
  148. package/lib/utils/popper.js +264 -0
  149. package/lib/utils/screenfull.d.ts +2 -0
  150. package/lib/utils/screenfull.js +112 -0
  151. package/package.json +5 -5
package/lib/index.js ADDED
@@ -0,0 +1,844 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ var _exportNames = {
8
+ Marker: true,
9
+ MarkerLayer: true,
10
+ ExportImage: true,
11
+ Fullscreen: true,
12
+ GeoLocate: true,
13
+ LayerSwitch: true,
14
+ Logo: true,
15
+ MapTheme: true,
16
+ MouseLocation: true,
17
+ Scale: true,
18
+ Swipe: true,
19
+ Zoom: true,
20
+ LayerPopup: true,
21
+ Popup: true
22
+ };
23
+ Object.defineProperty(exports, "ExportImage", {
24
+ enumerable: true,
25
+ get: function () {
26
+ return _exportImage.ExportImage;
27
+ }
28
+ });
29
+ Object.defineProperty(exports, "Fullscreen", {
30
+ enumerable: true,
31
+ get: function () {
32
+ return _fullscreen.Fullscreen;
33
+ }
34
+ });
35
+ Object.defineProperty(exports, "GeoLocate", {
36
+ enumerable: true,
37
+ get: function () {
38
+ return _geoLocate.GeoLocate;
39
+ }
40
+ });
41
+ Object.defineProperty(exports, "LayerPopup", {
42
+ enumerable: true,
43
+ get: function () {
44
+ return _layerPopup.LayerPopup;
45
+ }
46
+ });
47
+ Object.defineProperty(exports, "LayerSwitch", {
48
+ enumerable: true,
49
+ get: function () {
50
+ return _layerSwitch.LayerSwitch;
51
+ }
52
+ });
53
+ Object.defineProperty(exports, "Logo", {
54
+ enumerable: true,
55
+ get: function () {
56
+ return _logo.Logo;
57
+ }
58
+ });
59
+ Object.defineProperty(exports, "MapTheme", {
60
+ enumerable: true,
61
+ get: function () {
62
+ return _mapTheme.MapTheme;
63
+ }
64
+ });
65
+ Object.defineProperty(exports, "Marker", {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _marker.default;
69
+ }
70
+ });
71
+ Object.defineProperty(exports, "MarkerLayer", {
72
+ enumerable: true,
73
+ get: function () {
74
+ return _markerLayer.default;
75
+ }
76
+ });
77
+ Object.defineProperty(exports, "MouseLocation", {
78
+ enumerable: true,
79
+ get: function () {
80
+ return _mouseLocation.MouseLocation;
81
+ }
82
+ });
83
+ Object.defineProperty(exports, "Popup", {
84
+ enumerable: true,
85
+ get: function () {
86
+ return _popup.Popup;
87
+ }
88
+ });
89
+ Object.defineProperty(exports, "Scale", {
90
+ enumerable: true,
91
+ get: function () {
92
+ return _scale.Scale;
93
+ }
94
+ });
95
+ Object.defineProperty(exports, "Swipe", {
96
+ enumerable: true,
97
+ get: function () {
98
+ return _swipe.Swipe;
99
+ }
100
+ });
101
+ Object.defineProperty(exports, "Zoom", {
102
+ enumerable: true,
103
+ get: function () {
104
+ return _zoom.Zoom;
105
+ }
106
+ });
107
+ var _marker = _interopRequireDefault(require("./marker"));
108
+ var _markerLayer = _interopRequireDefault(require("./marker-layer"));
109
+ require("./assets/iconfont/iconfont");
110
+ var _baseControl = require("./control/baseControl");
111
+ Object.keys(_baseControl).forEach(function (key) {
112
+ if (key === "default" || key === "__esModule") return;
113
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
114
+ if (key in exports && exports[key] === _baseControl[key]) return;
115
+ Object.defineProperty(exports, key, {
116
+ enumerable: true,
117
+ get: function () {
118
+ return _baseControl[key];
119
+ }
120
+ });
121
+ });
122
+ var _exportImage = require("./control/exportImage");
123
+ var _fullscreen = require("./control/fullscreen");
124
+ var _geoLocate = require("./control/geoLocate");
125
+ var _layerSwitch = require("./control/layerSwitch");
126
+ var _logo = require("./control/logo");
127
+ var _mapTheme = require("./control/mapTheme");
128
+ var _mouseLocation = require("./control/mouseLocation");
129
+ var _scale = require("./control/scale");
130
+ var _swipe = require("./control/swipe");
131
+ var _zoom = require("./control/zoom");
132
+ var _interface = require("./interface");
133
+ Object.keys(_interface).forEach(function (key) {
134
+ if (key === "default" || key === "__esModule") return;
135
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
136
+ if (key in exports && exports[key] === _interface[key]) return;
137
+ Object.defineProperty(exports, key, {
138
+ enumerable: true,
139
+ get: function () {
140
+ return _interface[key];
141
+ }
142
+ });
143
+ });
144
+ var _layerPopup = require("./popup/layerPopup");
145
+ var _popup = require("./popup/popup");
146
+ // 引入样式(预编译的 CSS,构建时由 transform-import-css-l7 内联到 JS,用户无需安装 less)
147
+ function loadStyles(css, doc) {
148
+ var isMiniAli = typeof my !== 'undefined' && !!my && typeof my.showToast === 'function' && my.isFRM !== true;
149
+ var isWeChatMiniProgram = typeof wx !== 'undefined' && wx !== null && (typeof wx.request !== 'undefined' || typeof wx.miniProgram !== 'undefined');
150
+ if (isMiniAli || isWeChatMiniProgram) {
151
+ return;
152
+ }
153
+ if (!doc) doc = document;
154
+ if (!doc) {
155
+ return;
156
+ }
157
+ var head = doc.head || doc.getElementsByTagName('head')[0];
158
+ if (!head) {
159
+ head = doc.createElement('head');
160
+ var body = doc.body || doc.getElementsByTagName('body')[0];
161
+ if (body) {
162
+ body.parentNode.insertBefore(head, body);
163
+ } else {
164
+ doc.documentElement.appendChild(head);
165
+ }
166
+ }
167
+ var style = doc.createElement('style');
168
+ style.type = 'text/css';
169
+ if (style.styleSheet) {
170
+ style.styleSheet.cssText = css;
171
+ } else {
172
+ style.appendChild(doc.createTextNode(css));
173
+ }
174
+ head.appendChild(style);
175
+ return style;
176
+ }
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-color: transparent;
416
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
417
+ }
418
+ .l7-popper.l7-popper-left {
419
+ flex-direction: row;
420
+ }
421
+ .l7-popper.l7-popper-left .l7-popper-arrow {
422
+ border-left-color: #fff;
423
+ margin: 10px 0;
424
+ }
425
+ .l7-popper.l7-popper-right {
426
+ flex-direction: row-reverse;
427
+ }
428
+ .l7-popper.l7-popper-right .l7-popper-arrow {
429
+ border-right-color: #fff;
430
+ margin: 10px 0;
431
+ }
432
+ .l7-popper.l7-popper-top {
433
+ flex-direction: column;
434
+ }
435
+ .l7-popper.l7-popper-top .l7-popper-arrow {
436
+ border-top-color: #fff;
437
+ margin: 0 10px;
438
+ }
439
+ .l7-popper.l7-popper-bottom {
440
+ flex-direction: column-reverse;
441
+ }
442
+ .l7-popper.l7-popper-bottom .l7-popper-arrow {
443
+ border-bottom-color: #fff;
444
+ margin: 0 10px;
445
+ }
446
+ .l7-popper.l7-popper-start {
447
+ align-items: flex-start;
448
+ }
449
+ .l7-popper.l7-popper-end {
450
+ align-items: flex-end;
451
+ }
452
+ .l7-select-control--normal {
453
+ padding: 4px 0;
454
+ }
455
+ .l7-select-control--normal .l7-select-control-item {
456
+ display: flex;
457
+ align-items: center;
458
+ height: 24px;
459
+ padding: 0 16px;
460
+ font-size: 12px;
461
+ line-height: 24px;
462
+ }
463
+ .l7-select-control--normal .l7-select-control-item > * + * {
464
+ margin-left: 6px;
465
+ }
466
+ .l7-select-control--normal .l7-select-control-item input[type='checkbox'] {
467
+ width: 14px;
468
+ height: 14px;
469
+ }
470
+ .l7-select-control--normal .l7-select-control-item:hover {
471
+ background-color: #f3f3f3;
472
+ }
473
+ .l7-select-control--image {
474
+ display: flex;
475
+ flex-wrap: wrap;
476
+ align-items: flex-start;
477
+ box-sizing: content-box;
478
+ max-width: 460px;
479
+ max-height: 400px;
480
+ margin: 12px 0 0 12px;
481
+ overflow: hidden auto;
482
+ }
483
+ .l7-select-control--image .l7-select-control-item {
484
+ position: relative;
485
+ display: flex;
486
+ flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);
487
+ flex-direction: column;
488
+ justify-content: center;
489
+ box-sizing: content-box;
490
+ margin-right: 12px;
491
+ margin-bottom: 12px;
492
+ overflow: hidden;
493
+ font-size: 12px;
494
+ border: 1px solid #fff;
495
+ border-radius: 2px;
496
+ }
497
+ .l7-select-control--image .l7-select-control-item img {
498
+ width: 100%;
499
+ height: 80px;
500
+ }
501
+ .l7-select-control--image .l7-select-control-item input[type='checkbox'] {
502
+ position: absolute;
503
+ top: 0;
504
+ right: 0;
505
+ }
506
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row {
507
+ display: flex;
508
+ align-items: center;
509
+ justify-content: center;
510
+ line-height: 26px;
511
+ }
512
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {
513
+ margin-left: 8px;
514
+ }
515
+ .l7-select-control--image .l7-select-control-item.l7-select-control-item-active {
516
+ border-color: #0370fe;
517
+ }
518
+ .l7-select-control-item {
519
+ cursor: pointer;
520
+ }
521
+ .l7-select-control-item input[type='checkbox'] {
522
+ margin: 0;
523
+ cursor: pointer;
524
+ }
525
+ .l7-select-control--multiple .l7-select-control-item:hover {
526
+ background-color: transparent;
527
+ }
528
+ .l7-control-logo {
529
+ width: 89px;
530
+ height: 16px;
531
+ -webkit-user-select: none;
532
+ -moz-user-select: none;
533
+ -ms-user-select: none;
534
+ user-select: none;
535
+ }
536
+ .l7-control-logo img {
537
+ height: 100%;
538
+ width: 100%;
539
+ }
540
+ .l7-control-logo .l7-control-logo-link {
541
+ display: block;
542
+ cursor: pointer;
543
+ }
544
+ .l7-control-logo .l7-control-logo-link img {
545
+ cursor: pointer;
546
+ }
547
+ .l7-control-mouse-location {
548
+ background-color: #fff;
549
+ border-radius: 2px;
550
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
551
+ padding: 2px 4px;
552
+ min-width: 130px;
553
+ }
554
+ .l7-control-zoom {
555
+ overflow: hidden;
556
+ border-radius: 2px;
557
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
558
+ }
559
+ .l7-control-zoom .l7-button-control {
560
+ font-size: 16px;
561
+ border-bottom: 1px solid #f0f0f0;
562
+ border-radius: 0;
563
+ box-shadow: 0 0 0;
564
+ }
565
+ .l7-control-zoom .l7-button-control .l7-iconfont {
566
+ width: 14px;
567
+ height: 14px;
568
+ }
569
+ .l7-control-zoom .l7-button-control:last-child {
570
+ border-bottom: 0;
571
+ }
572
+ .l7-control-zoom .l7-control-zoom__number {
573
+ color: #595959;
574
+ padding: 0;
575
+ }
576
+ .l7-control-zoom .l7-control-zoom__number:hover {
577
+ background-color: #fff;
578
+ }
579
+ .l7-control-scale {
580
+ display: flex;
581
+ flex-direction: column;
582
+ }
583
+ .l7-control-scale .l7-control-scale-line {
584
+ box-sizing: border-box;
585
+ padding: 2px 5px 1px;
586
+ overflow: hidden;
587
+ color: #595959;
588
+ font-size: 10px;
589
+ line-height: 1.1;
590
+ white-space: nowrap;
591
+ background: #fff;
592
+ border: 2px solid #000;
593
+ border-top: 0;
594
+ transition: width 0.1s;
595
+ }
596
+ .l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {
597
+ margin-top: -2px;
598
+ border-top: 2px solid #777;
599
+ border-bottom: none;
600
+ }
601
+ .l7-right .l7-control-scale {
602
+ display: flex;
603
+ align-items: flex-end;
604
+ }
605
+ .l7-right .l7-control-scale .l7-control-scale-line {
606
+ text-align: right;
607
+ }
608
+ .l7-popup {
609
+ position: absolute;
610
+ top: 0;
611
+ left: 0;
612
+ z-index: 5;
613
+ display: flex;
614
+ will-change: transform;
615
+ pointer-events: none;
616
+ }
617
+ .l7-popup.l7-popup-hide {
618
+ display: none;
619
+ }
620
+ .l7-popup .l7-popup-content {
621
+ position: relative;
622
+ padding: 16px;
623
+ font-size: 14px;
624
+ background: #fff;
625
+ border-radius: 3px;
626
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
627
+ }
628
+ .l7-popup .l7-popup-content .l7-popup-content__title {
629
+ margin-bottom: 8px;
630
+ font-weight: bold;
631
+ }
632
+ .l7-popup .l7-popup-content .l7-popup-close-button,
633
+ .l7-popup .l7-popup-content .l7-popup-content__title,
634
+ .l7-popup .l7-popup-content .l7-popup-content__panel {
635
+ white-space: normal;
636
+ -webkit-user-select: text;
637
+ -moz-user-select: text;
638
+ -ms-user-select: text;
639
+ user-select: text;
640
+ pointer-events: initial;
641
+ }
642
+ .l7-popup .l7-popup-content .l7-popup-close-button {
643
+ position: absolute;
644
+ top: 0;
645
+ right: 0;
646
+ width: 18px;
647
+ height: 18px;
648
+ padding: 0;
649
+ font-size: 14px;
650
+ line-height: 18px;
651
+ text-align: center;
652
+ background-color: transparent;
653
+ border: 0;
654
+ border-radius: 0 3px 0 0;
655
+ cursor: pointer;
656
+ }
657
+ .l7-popup .l7-popup-tip {
658
+ position: relative;
659
+ z-index: 1;
660
+ width: 0;
661
+ height: 0;
662
+ border: 10px solid transparent;
663
+ }
664
+ .l7-popup.l7-popup-anchor-bottom,
665
+ .l7-popup.l7-popup-anchor-bottom-left,
666
+ .l7-popup.l7-popup-anchor-bottom-right {
667
+ flex-direction: column-reverse;
668
+ }
669
+ .l7-popup.l7-popup-anchor-bottom .l7-popup-tip,
670
+ .l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,
671
+ .l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {
672
+ bottom: 1px;
673
+ }
674
+ .l7-popup.l7-popup-anchor-top,
675
+ .l7-popup.l7-popup-anchor-top-left,
676
+ .l7-popup.l7-popup-anchor-top-right {
677
+ flex-direction: column;
678
+ }
679
+ .l7-popup.l7-popup-anchor-top .l7-popup-tip,
680
+ .l7-popup.l7-popup-anchor-top-left .l7-popup-tip,
681
+ .l7-popup.l7-popup-anchor-top-right .l7-popup-tip {
682
+ top: 1px;
683
+ }
684
+ .l7-popup.l7-popup-anchor-left {
685
+ flex-direction: row;
686
+ }
687
+ .l7-popup.l7-popup-anchor-right {
688
+ flex-direction: row-reverse;
689
+ }
690
+ .l7-popup-anchor-top .l7-popup-tip {
691
+ position: relative;
692
+ align-self: center;
693
+ border-top: none;
694
+ border-bottom-color: #fff;
695
+ }
696
+ .l7-popup-anchor-top-left .l7-popup-tip {
697
+ align-self: flex-start;
698
+ border-top: none;
699
+ border-bottom-color: #fff;
700
+ border-left: none;
701
+ }
702
+ .l7-popup-anchor-top-right .l7-popup-tip {
703
+ align-self: flex-end;
704
+ border-top: none;
705
+ border-right: none;
706
+ border-bottom-color: #fff;
707
+ }
708
+ .l7-popup-anchor-bottom .l7-popup-tip {
709
+ align-self: center;
710
+ border-top-color: #fff;
711
+ border-bottom: none;
712
+ }
713
+ .l7-popup-anchor-bottom-left .l7-popup-tip {
714
+ align-self: flex-start;
715
+ border-top-color: #fff;
716
+ border-bottom: none;
717
+ border-left: none;
718
+ }
719
+ .l7-popup-anchor-bottom-right .l7-popup-tip {
720
+ align-self: flex-end;
721
+ border-top-color: #fff;
722
+ border-right: none;
723
+ border-bottom: none;
724
+ }
725
+ .l7-popup-anchor-left .l7-popup-tip {
726
+ align-self: center;
727
+ border-right-color: #fff;
728
+ border-left: none;
729
+ }
730
+ .l7-popup-anchor-right .l7-popup-tip {
731
+ right: 1px;
732
+ align-self: center;
733
+ border-right: none;
734
+ border-left-color: #fff;
735
+ }
736
+ .l7-popup-anchor-top-left .l7-popup-content {
737
+ border-top-left-radius: 0;
738
+ }
739
+ .l7-popup-anchor-top-right .l7-popup-content {
740
+ border-top-right-radius: 0;
741
+ }
742
+ .l7-popup-anchor-bottom-left .l7-popup-content {
743
+ border-bottom-left-radius: 0;
744
+ }
745
+ .l7-popup-anchor-bottom-right .l7-popup-content {
746
+ border-bottom-right-radius: 0;
747
+ }
748
+ .l7-popup-track-pointer {
749
+ display: none;
750
+ }
751
+ .l7-popup-track-pointer * {
752
+ -webkit-user-select: none;
753
+ -moz-user-select: none;
754
+ -ms-user-select: none;
755
+ user-select: none;
756
+ pointer-events: none;
757
+ }
758
+ .l7-map:hover .l7-popup-track-pointer {
759
+ display: flex;
760
+ }
761
+ .l7-map:active .l7-popup-track-pointer {
762
+ display: none;
763
+ }
764
+ .l7-layer-popup__row {
765
+ font-size: 12px;
766
+ }
767
+ .l7-layer-popup__row + .l7-layer-popup__row {
768
+ margin-top: 4px;
769
+ }
770
+ .l7-control-swipe {
771
+ position: absolute;
772
+ top: 50%;
773
+ left: 50%;
774
+ z-index: 6;
775
+ -webkit-transform: translate(-50%, -50%);
776
+ transform: translate(-50%, -50%);
777
+ touch-action: none;
778
+ }
779
+ .l7-control-swipe_hide {
780
+ display: none;
781
+ }
782
+ .l7-control-swipe::before {
783
+ position: absolute;
784
+ top: -5000px;
785
+ bottom: -5000px;
786
+ left: 50%;
787
+ z-index: -1;
788
+ width: 4px;
789
+ background: #fff;
790
+ -webkit-transform: translate(-2px, 0);
791
+ transform: translate(-2px, 0);
792
+ content: '';
793
+ }
794
+ .l7-control-swipe.horizontal::before {
795
+ inset: 50% -5000px auto;
796
+ width: auto;
797
+ height: 4px;
798
+ }
799
+ .l7-control-swipe__button {
800
+ display: block;
801
+ width: 28px;
802
+ height: 28px;
803
+ margin: 0;
804
+ padding: 0;
805
+ color: #595959;
806
+ font-weight: bold;
807
+ font-size: inherit;
808
+ text-align: center;
809
+ text-decoration: none;
810
+ background-color: #fff;
811
+ border: none;
812
+ border-radius: 2px;
813
+ outline: none;
814
+ }
815
+ .l7-control-swipe,
816
+ .l7-control-swipe__button {
817
+ cursor: ew-resize;
818
+ }
819
+ .l7-control-swipe.horizontal,
820
+ .l7-control-swipe.horizontal button {
821
+ cursor: ns-resize;
822
+ }
823
+ .l7-control-swipe::after,
824
+ .l7-control-swipe__button::before,
825
+ .l7-control-swipe__button::after {
826
+ position: absolute;
827
+ top: 25%;
828
+ bottom: 25%;
829
+ left: 50%;
830
+ width: 2px;
831
+ background: currentcolor;
832
+ -webkit-transform: translate(-1px, 0);
833
+ transform: translate(-1px, 0);
834
+ content: '';
835
+ }
836
+ .l7-control-swipe__button::after {
837
+ -webkit-transform: translateX(4px);
838
+ transform: translateX(4px);
839
+ }
840
+ .l7-control-swipe__button::before {
841
+ -webkit-transform: translateX(-6px);
842
+ transform: translateX(-6px);
843
+ }
844
+ `);