@antv/l7-component 2.19.11 → 2.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,10 +54,10 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
54
54
  this.isDisable = newIsDisable;
55
55
  if (newIsDisable) {
56
56
  var _this$button;
57
- (_this$button = this.button) === null || _this$button === void 0 ? void 0 : _this$button.setAttribute('disabled', 'true');
57
+ (_this$button = this.button) === null || _this$button === void 0 || _this$button.setAttribute('disabled', 'true');
58
58
  } else {
59
59
  var _this$button2;
60
- (_this$button2 = this.button) === null || _this$button2 === void 0 ? void 0 : _this$button2.removeAttribute('disabled');
60
+ (_this$button2 = this.button) === null || _this$button2 === void 0 || _this$button2.removeAttribute('disabled');
61
61
  }
62
62
  }
63
63
  }, {
@@ -117,7 +117,7 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
117
117
  key: "setBtnTitle",
118
118
  value: function setBtnTitle(title) {
119
119
  var _this$button3;
120
- (_this$button3 = this.button) === null || _this$button3 === void 0 ? void 0 : _this$button3.setAttribute('title', title !== null && title !== void 0 ? title : '');
120
+ (_this$button3 = this.button) === null || _this$button3 === void 0 || _this$button3.setAttribute('title', title !== null && title !== void 0 ? title : '');
121
121
  }
122
122
 
123
123
  /**
@@ -135,10 +135,10 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
135
135
  var firstChild = (_this$button4 = this.button) === null || _this$button4 === void 0 ? void 0 : _this$button4.firstChild;
136
136
  if (firstChild) {
137
137
  var _this$button5;
138
- (_this$button5 = this.button) === null || _this$button5 === void 0 ? void 0 : _this$button5.insertBefore(newIcon, firstChild);
138
+ (_this$button5 = this.button) === null || _this$button5 === void 0 || _this$button5.insertBefore(newIcon, firstChild);
139
139
  } else {
140
140
  var _this$button6;
141
- (_this$button6 = this.button) === null || _this$button6 === void 0 ? void 0 : _this$button6.appendChild(newIcon);
141
+ (_this$button6 = this.button) === null || _this$button6 === void 0 || _this$button6.appendChild(newIcon);
142
142
  }
143
143
  this.buttonIcon = newIcon;
144
144
  }
@@ -161,7 +161,7 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
161
161
  if (!btnText) {
162
162
  var _this$button7;
163
163
  btnText = DOM.create('div', 'l7-button-control__text');
164
- (_this$button7 = this.button) === null || _this$button7 === void 0 ? void 0 : _this$button7.appendChild(btnText);
164
+ (_this$button7 = this.button) === null || _this$button7 === void 0 || _this$button7.appendChild(btnText);
165
165
  this.buttonText = btnText;
166
166
  }
167
167
  btnText.innerText = newText;
@@ -31,21 +31,18 @@ var ExportImage = /*#__PURE__*/function (_ButtonControl) {
31
31
  while (1) switch (_context.prev = _context.next) {
32
32
  case 0:
33
33
  onExport = _this.controlOption.onExport;
34
- if (!(onExport === null || onExport === void 0)) {
35
- _context.next = 5;
34
+ _context.t0 = onExport === null || onExport === void 0;
35
+ if (_context.t0) {
36
+ _context.next = 8;
36
37
  break;
37
38
  }
38
- void 0;
39
- _context.next = 10;
40
- break;
41
- case 5:
42
- _context.t0 = onExport;
43
- _context.next = 8;
39
+ _context.t1 = onExport;
40
+ _context.next = 6;
44
41
  return _this.getImage();
42
+ case 6:
43
+ _context.t2 = _context.sent;
44
+ (0, _context.t1)(_context.t2);
45
45
  case 8:
46
- _context.t1 = _context.sent;
47
- (0, _context.t0)(_context.t1);
48
- case 10:
49
46
  case "end":
50
47
  return _context.stop();
51
48
  }
@@ -96,7 +93,7 @@ var ExportImage = /*#__PURE__*/function (_ButtonControl) {
96
93
  case 9:
97
94
  imgList = _context2.sent;
98
95
  imgList.forEach(function (img) {
99
- context === null || context === void 0 ? void 0 : context.drawImage(img, 0, 0, width, height);
96
+ context === null || context === void 0 || context.drawImage(img, 0, 0, width, height);
100
97
  });
101
98
  return _context2.abrupt("return", canvas.toDataURL("image/".concat(imageType)));
102
99
  case 12:
package/es/css/index.css CHANGED
@@ -271,60 +271,60 @@
271
271
  padding: 4px 0;
272
272
  }
273
273
  .l7-select-control--normal .l7-select-control-item {
274
- height: 24px;
275
- line-height: 24px;
276
274
  display: flex;
277
275
  align-items: center;
276
+ height: 24px;
278
277
  padding: 0 16px;
279
278
  font-size: 12px;
279
+ line-height: 24px;
280
280
  }
281
281
  .l7-select-control--normal .l7-select-control-item > * + * {
282
282
  margin-left: 6px;
283
283
  }
284
284
  .l7-select-control--normal .l7-select-control-item input[type='checkbox'] {
285
- height: 14px;
286
285
  width: 14px;
286
+ height: 14px;
287
287
  }
288
288
  .l7-select-control--normal .l7-select-control-item:hover {
289
289
  background-color: #f3f3f3;
290
290
  }
291
291
  .l7-select-control--image {
292
- padding: 12px 12px 0 12px;
293
- width: 474px;
294
- height: 320px;
295
- overflow: auto;
296
292
  display: flex;
297
293
  flex-wrap: wrap;
298
- box-sizing: border-box;
299
294
  align-items: flex-start;
295
+ box-sizing: content-box;
296
+ max-width: 420px;
297
+ max-height: 400px;
298
+ margin: 12px 0 0 12px;
299
+ overflow: auto;
300
300
  }
301
301
  .l7-select-control--image .l7-select-control-item {
302
- margin-right: 12px;
303
- border-radius: 2px;
304
- overflow: hidden;
305
- border: 1px solid #fff;
306
- box-sizing: content-box;
307
- width: calc((100% - 36px) / 3);
302
+ position: relative;
308
303
  display: flex;
309
304
  flex-direction: column;
310
305
  justify-content: center;
306
+ box-sizing: content-box;
307
+ width: 408px / 3 - 12px;
308
+ margin-right: 12px;
311
309
  margin-bottom: 12px;
312
- position: relative;
310
+ overflow: hidden;
313
311
  font-size: 12px;
312
+ border: 1px solid #fff;
313
+ border-radius: 2px;
314
314
  }
315
315
  .l7-select-control--image .l7-select-control-item img {
316
- width: 142px;
316
+ width: 100%;
317
317
  height: 80px;
318
318
  }
319
319
  .l7-select-control--image .l7-select-control-item input[type='checkbox'] {
320
320
  position: absolute;
321
- right: 0;
322
321
  top: 0;
322
+ right: 0;
323
323
  }
324
324
  .l7-select-control--image .l7-select-control-item .l7-select-control-item-row {
325
325
  display: flex;
326
- justify-content: center;
327
326
  align-items: center;
327
+ justify-content: center;
328
328
  line-height: 26px;
329
329
  }
330
330
  .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {
@@ -333,9 +333,6 @@
333
333
  .l7-select-control--image .l7-select-control-item.l7-select-control-item-active {
334
334
  border-color: #0370fe;
335
335
  }
336
- .l7-select-control--image .l7-select-control-item:nth-child(3n) {
337
- margin-right: 0;
338
- }
339
336
  .l7-select-control-item {
340
337
  cursor: pointer;
341
338
  }
@@ -3,18 +3,18 @@
3
3
  .l7-select-control--normal {
4
4
  padding: 4px 0;
5
5
  .l7-select-control-item {
6
- height: 24px;
7
- line-height: 24px;
8
6
  display: flex;
9
7
  align-items: center;
8
+ height: 24px;
10
9
  padding: 0 16px;
11
10
  font-size: 12px;
11
+ line-height: 24px;
12
12
  > * + * {
13
13
  margin-left: 6px;
14
14
  }
15
15
  input[type='checkbox'] {
16
- height: 14px;
17
16
  width: 14px;
17
+ height: 14px;
18
18
  }
19
19
  &:hover {
20
20
  background-color: @l7-btn-control-bg-hover-color;
@@ -23,40 +23,40 @@
23
23
  }
24
24
 
25
25
  .l7-select-control--image {
26
- padding: 12px 12px 0 12px;
27
- width: @l7-select-control-image-popper-width;
28
- height: 320px;
29
- overflow: auto;
30
26
  display: flex;
31
27
  flex-wrap: wrap;
32
- box-sizing: border-box;
33
28
  align-items: flex-start;
29
+ box-sizing: content-box;
30
+ max-width: @l7-select-control-image-width;
31
+ max-height: 400px;
32
+ margin: 12px 0 0 12px;
33
+ overflow: auto;
34
34
  .l7-select-control-item {
35
- margin-right: 12px;
36
- border-radius: @l7-btn-control-border-radius;
37
- overflow: hidden;
38
- border: 1px solid @l7-popper-control-bg-color;
39
- box-sizing: content-box;
40
- width: calc((100% - 36px) / 3);
35
+ position: relative;
41
36
  display: flex;
42
37
  flex-direction: column;
43
38
  justify-content: center;
39
+ box-sizing: content-box;
40
+ width: (@l7-select-control-image-width - 12px) / 3 - 12px;
41
+ margin-right: 12px;
44
42
  margin-bottom: 12px;
45
- position: relative;
43
+ overflow: hidden;
46
44
  font-size: 12px;
45
+ border: 1px solid @l7-popper-control-bg-color;
46
+ border-radius: @l7-btn-control-border-radius;
47
47
  img {
48
- width: 142px;
48
+ width: 100%;
49
49
  height: 80px;
50
50
  }
51
51
  input[type='checkbox'] {
52
52
  position: absolute;
53
- right: 0;
54
53
  top: 0;
54
+ right: 0;
55
55
  }
56
56
  .l7-select-control-item-row {
57
57
  display: flex;
58
- justify-content: center;
59
58
  align-items: center;
59
+ justify-content: center;
60
60
  line-height: 26px;
61
61
  > * + * {
62
62
  margin-left: 8px;
@@ -65,9 +65,6 @@
65
65
  &.l7-select-control-item-active {
66
66
  border-color: @l7-select-control-active-color;
67
67
  }
68
- &:nth-child(3n) {
69
- margin-right: 0;
70
- }
71
68
  }
72
69
  }
73
70
 
@@ -23,7 +23,8 @@
23
23
 
24
24
  // SelectControl
25
25
  @l7-select-control-active-color: #0370fe;
26
- @l7-select-control-image-popper-width: 474px;
26
+
27
+ @l7-select-control-image-width: 420px;
27
28
 
28
29
  @position-list: top, right, bottom, left;
29
30
 
package/es/index.js CHANGED
@@ -32,7 +32,7 @@ function loadStyles(css, doc) {
32
32
  head.appendChild(style);
33
33
  return style;
34
34
  }
35
- 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 height: 24px;\n line-height: 24px;\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 padding: 0 16px;\n font-size: 12px;\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 height: 14px;\n width: 14px;\n}\n.l7-select-control--normal .l7-select-control-item:hover {\n background-color: #f3f3f3;\n}\n.l7-select-control--image {\n padding: 12px 12px 0 12px;\n width: 474px;\n height: 320px;\n overflow: auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.l7-select-control--image .l7-select-control-item {\n margin-right: 12px;\n border-radius: 2px;\n overflow: hidden;\n border: 1px solid #fff;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n width: calc((100% - 36px) / 3);\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 -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin-bottom: 12px;\n position: relative;\n font-size: 12px;\n}\n.l7-select-control--image .l7-select-control-item img {\n width: 142px;\n height: 80px;\n}\n.l7-select-control--image .l7-select-control-item input[type='checkbox'] {\n position: absolute;\n right: 0;\n top: 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-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 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--image .l7-select-control-item:nth-child(3n) {\n margin-right: 0;\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");
35
+ 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: 420px;\n max-height: 400px;\n margin: 12px 0 0 12px;\n overflow: 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-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 width: 408px / 3 - 12px;\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 .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"); // import './css/index.less';
36
36
  export * from "./control/baseControl";
37
37
  export { ExportImage } from "./control/exportImage";
38
38
  export { Fullscreen } from "./control/fullscreen";
@@ -40,10 +40,12 @@ export default class MarkerLayer extends EventEmitter {
40
40
  */
41
41
  show(): void;
42
42
  getMarkers(): IMarker[];
43
+ getOriginMarkers(): IMarker[];
43
44
  addMarkers(): void;
44
45
  clear(): void;
45
46
  destroy(): void;
46
47
  private addPoint;
48
+ private removePoint;
47
49
  private initCluster;
48
50
  private getClusterMarker;
49
51
  private getLeaves;
@@ -9,7 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
10
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
11
  import { TYPES } from '@antv/l7-core';
12
- import { bindAll, boundsContains, DOM, lodashUtil, padBounds, Satistics } from '@antv/l7-utils';
12
+ import { DOM, Satistics, bindAll, boundsContains, lodashUtil, padBounds } from '@antv/l7-utils';
13
13
  import { EventEmitter } from 'eventemitter3';
14
14
  // @ts-ignore
15
15
  // tslint:disable-next-line:no-submodule-imports
@@ -112,9 +112,6 @@ var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
112
112
  }
113
113
  }
114
114
  this.markers.push(marker);
115
- // if(this.inited) {
116
- // marker.addTo(this.scene);
117
- // }
118
115
  }
119
116
  }, {
120
117
  key: "removeMarker",
@@ -123,6 +120,12 @@ var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
123
120
  var markerIndex = this.markers.indexOf(marker);
124
121
  if (markerIndex > -1) {
125
122
  this.markers.splice(markerIndex, 1);
123
+ if (this.markerLayerOption.cluster) {
124
+ this.removePoint(markerIndex);
125
+ if (this.mapsService) {
126
+ this.getClusterMarker(this.bbox, this.zoom);
127
+ }
128
+ }
126
129
  }
127
130
  }
128
131
 
@@ -161,6 +164,11 @@ var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
161
164
  var cluster = this.markerLayerOption.cluster;
162
165
  return cluster ? this.clusterMarkers : this.markers;
163
166
  }
167
+ }, {
168
+ key: "getOriginMarkers",
169
+ value: function getOriginMarkers() {
170
+ return this.markers;
171
+ }
164
172
 
165
173
  // 批量添加marker到scene
166
174
  }, {
@@ -219,6 +227,20 @@ var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
219
227
  this.clusterIndex.load(this.points);
220
228
  }
221
229
  }
230
+ }, {
231
+ key: "removePoint",
232
+ value: function removePoint(id) {
233
+ var targetIndex = this.points.findIndex(function (point) {
234
+ return point.properties.marker_id === id;
235
+ });
236
+ if (targetIndex > -1) {
237
+ this.points.splice(targetIndex, 1);
238
+ }
239
+ if (this.clusterIndex) {
240
+ // 在删除点的时候需要更新 cluster 的数据
241
+ this.clusterIndex.load(this.points);
242
+ }
243
+ }
222
244
  }, {
223
245
  key: "initCluster",
224
246
  value: function initCluster() {
@@ -155,21 +155,21 @@ var LayerPopup = /*#__PURE__*/function (_Popup) {
155
155
  var onMouseOut = _this2.onLayerMouseOut.bind(_this2, layer);
156
156
  layerInfo.onMouseMove = onMouseMove;
157
157
  layerInfo.onMouseOut = onMouseOut;
158
- layer === null || layer === void 0 ? void 0 : layer.on('mousemove', onMouseMove);
159
- layer === null || layer === void 0 ? void 0 : layer.on('mouseout', onMouseOut);
158
+ layer === null || layer === void 0 || layer.on('mousemove', onMouseMove);
159
+ layer === null || layer === void 0 || layer.on('mouseout', onMouseOut);
160
160
  } else {
161
161
  var _this2$mapsService;
162
162
  var onLayerClick = _this2.onLayerClick.bind(_this2, layer);
163
163
  layerInfo.onClick = onLayerClick;
164
- layer === null || layer === void 0 ? void 0 : layer.on('click', onLayerClick);
164
+ layer === null || layer === void 0 || layer.on('click', onLayerClick);
165
165
  var mapContainer = (_this2$mapsService = _this2.mapsService) === null || _this2$mapsService === void 0 ? void 0 : _this2$mapsService.getMapContainer();
166
166
  if (mapContainer && closeOnClick) {
167
167
  mapContainer.addEventListener('click', _this2.onSceneClick);
168
168
  }
169
169
  }
170
- var source = layer === null || layer === void 0 ? void 0 : (_layer$getSource = layer.getSource) === null || _layer$getSource === void 0 ? void 0 : _layer$getSource.call(layer);
170
+ var source = layer === null || layer === void 0 || (_layer$getSource = layer.getSource) === null || _layer$getSource === void 0 ? void 0 : _layer$getSource.call(layer);
171
171
  var onSourceUpdate = _this2.onSourceUpdate.bind(_this2);
172
- source === null || source === void 0 ? void 0 : source.on('update', onSourceUpdate);
172
+ source === null || source === void 0 || source.on('update', onSourceUpdate);
173
173
  layerInfo.onSourceUpdate = onSourceUpdate;
174
174
  _this2.layerConfigMap.set(layer, layerInfo);
175
175
  });
@@ -205,7 +205,7 @@ var LayerPopup = /*#__PURE__*/function (_Popup) {
205
205
  }
206
206
  if (onSourceUpdate) {
207
207
  var _layer$getSource2;
208
- layer === null || layer === void 0 ? void 0 : (_layer$getSource2 = layer.getSource()) === null || _layer$getSource2 === void 0 ? void 0 : _layer$getSource2.off('update', onSourceUpdate);
208
+ layer === null || layer === void 0 || (_layer$getSource2 = layer.getSource()) === null || _layer$getSource2 === void 0 || _layer$getSource2.off('update', onSourceUpdate);
209
209
  }
210
210
  var mapContainer = (_this3$mapsService = _this3.mapsService) === null || _this3$mapsService === void 0 ? void 0 : _this3$mapsService.getMapContainer();
211
211
  if (mapContainer) {
@@ -275,7 +275,7 @@ var LayerPopup = /*#__PURE__*/function (_Popup) {
275
275
  var content = customContent instanceof Function ? customContent(_feature) : customContent;
276
276
  DOM.appendElementType(contentFrag, content);
277
277
  } else if (fields !== null && fields !== void 0 && fields.length) {
278
- fields === null || fields === void 0 ? void 0 : fields.forEach(function (fieldConfig) {
278
+ fields === null || fields === void 0 || fields.forEach(function (fieldConfig) {
279
279
  var _ref3, _ref4;
280
280
  var _ref2 = typeof fieldConfig === 'string' ?
281
281
  // tslint:disable-next-line:no-object-literal-type-assertion
package/es/popup/popup.js CHANGED
@@ -467,10 +467,10 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
467
467
  var _this3 = this;
468
468
  var mapsService = this.mapsService;
469
469
  if (mapsService) {
470
- mapsService === null || mapsService === void 0 ? void 0 : mapsService.off('click', this.onCloseButtonClick);
470
+ mapsService === null || mapsService === void 0 || mapsService.off('click', this.onCloseButtonClick);
471
471
  if (this.popupOption.closeOnClick && !onlyClear) {
472
472
  requestAnimationFrame(function () {
473
- mapsService === null || mapsService === void 0 ? void 0 : mapsService.on('click', _this3.onCloseButtonClick);
473
+ mapsService === null || mapsService === void 0 || mapsService.on('click', _this3.onCloseButtonClick);
474
474
  });
475
475
  }
476
476
  }
@@ -489,9 +489,9 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
489
489
  var _this$mapsService;
490
490
  var container = (_this$mapsService = this.mapsService) === null || _this$mapsService === void 0 ? void 0 : _this$mapsService.getContainer();
491
491
  if (container) {
492
- container === null || container === void 0 ? void 0 : container.removeEventListener('mousemove', this.onMouseMove);
492
+ container === null || container === void 0 || container.removeEventListener('mousemove', this.onMouseMove);
493
493
  if (this.popupOption.followCursor && !onlyClear) {
494
- container === null || container === void 0 ? void 0 : container.addEventListener('mousemove', this.onMouseMove);
494
+ container === null || container === void 0 || container.addEventListener('mousemove', this.onMouseMove);
495
495
  }
496
496
  }
497
497
  }
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.MapboxMapStyleConfig = exports.GaodeMapStyleConfig = void 0;
7
- var GaodeMapStyleConfig = {
7
+ var GaodeMapStyleConfig = exports.GaodeMapStyleConfig = {
8
8
  normal: {
9
9
  text: '标准',
10
10
  img: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*qdFDSbvIalgAAAAAAAAAAAAADmJ7AQ/original'
@@ -42,8 +42,7 @@ var GaodeMapStyleConfig = {
42
42
  img: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*orY0T7QL-lwAAAAAAAAAAAAADmJ7AQ/original'
43
43
  }
44
44
  };
45
- exports.GaodeMapStyleConfig = GaodeMapStyleConfig;
46
- var MapboxMapStyleConfig = {
45
+ var MapboxMapStyleConfig = exports.MapboxMapStyleConfig = {
47
46
  normal: {
48
47
  text: '标准',
49
48
  img: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*kIyZTok4Uk0AAAAAAAAAAAAADmJ7AQ/original'
@@ -64,5 +63,4 @@ var MapboxMapStyleConfig = {
64
63
  text: '户外',
65
64
  img: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*hWwFSYJEFWsAAAAAAAAAAAAADmJ7AQ/original'
66
65
  }
67
- };
68
- exports.MapboxMapStyleConfig = MapboxMapStyleConfig;
66
+ };
@@ -17,7 +17,7 @@ var _l7Utils = require("@antv/l7-utils");
17
17
  var _control = _interopRequireDefault(require("./control"));
18
18
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
19
19
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
- var ButtonControl = /*#__PURE__*/function (_Control) {
20
+ var ButtonControl = exports.default = exports.ButtonControl = /*#__PURE__*/function (_Control) {
21
21
  (0, _inherits2.default)(ButtonControl, _Control);
22
22
  var _super = _createSuper(ButtonControl);
23
23
  function ButtonControl() {
@@ -60,10 +60,10 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
60
60
  this.isDisable = newIsDisable;
61
61
  if (newIsDisable) {
62
62
  var _this$button;
63
- (_this$button = this.button) === null || _this$button === void 0 ? void 0 : _this$button.setAttribute('disabled', 'true');
63
+ (_this$button = this.button) === null || _this$button === void 0 || _this$button.setAttribute('disabled', 'true');
64
64
  } else {
65
65
  var _this$button2;
66
- (_this$button2 = this.button) === null || _this$button2 === void 0 ? void 0 : _this$button2.removeAttribute('disabled');
66
+ (_this$button2 = this.button) === null || _this$button2 === void 0 || _this$button2.removeAttribute('disabled');
67
67
  }
68
68
  }
69
69
  }, {
@@ -123,7 +123,7 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
123
123
  key: "setBtnTitle",
124
124
  value: function setBtnTitle(title) {
125
125
  var _this$button3;
126
- (_this$button3 = this.button) === null || _this$button3 === void 0 ? void 0 : _this$button3.setAttribute('title', title !== null && title !== void 0 ? title : '');
126
+ (_this$button3 = this.button) === null || _this$button3 === void 0 || _this$button3.setAttribute('title', title !== null && title !== void 0 ? title : '');
127
127
  }
128
128
 
129
129
  /**
@@ -141,10 +141,10 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
141
141
  var firstChild = (_this$button4 = this.button) === null || _this$button4 === void 0 ? void 0 : _this$button4.firstChild;
142
142
  if (firstChild) {
143
143
  var _this$button5;
144
- (_this$button5 = this.button) === null || _this$button5 === void 0 ? void 0 : _this$button5.insertBefore(newIcon, firstChild);
144
+ (_this$button5 = this.button) === null || _this$button5 === void 0 || _this$button5.insertBefore(newIcon, firstChild);
145
145
  } else {
146
146
  var _this$button6;
147
- (_this$button6 = this.button) === null || _this$button6 === void 0 ? void 0 : _this$button6.appendChild(newIcon);
147
+ (_this$button6 = this.button) === null || _this$button6 === void 0 || _this$button6.appendChild(newIcon);
148
148
  }
149
149
  this.buttonIcon = newIcon;
150
150
  }
@@ -167,7 +167,7 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
167
167
  if (!btnText) {
168
168
  var _this$button7;
169
169
  btnText = _l7Utils.DOM.create('div', 'l7-button-control__text');
170
- (_this$button7 = this.button) === null || _this$button7 === void 0 ? void 0 : _this$button7.appendChild(btnText);
170
+ (_this$button7 = this.button) === null || _this$button7 === void 0 || _this$button7.appendChild(btnText);
171
171
  this.buttonText = btnText;
172
172
  }
173
173
  btnText.innerText = newText;
@@ -179,5 +179,4 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
179
179
  }
180
180
  }]);
181
181
  return ButtonControl;
182
- }(_control.default);
183
- exports.default = exports.ButtonControl = ButtonControl;
182
+ }(_control.default);
@@ -25,7 +25,7 @@ var _l7Utils = require("@antv/l7-utils");
25
25
  var _eventemitter = _interopRequireDefault(require("eventemitter3"));
26
26
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
27
27
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
28
- var Control = /*#__PURE__*/function (_ref) {
28
+ var Control = exports.default = exports.Control = /*#__PURE__*/function (_ref) {
29
29
  (0, _inherits2.default)(Control, _ref);
30
30
  var _super = _createSuper(Control);
31
31
  /**
@@ -306,7 +306,6 @@ var Control = /*#__PURE__*/function (_ref) {
306
306
  }]);
307
307
  return Control;
308
308
  }(_eventemitter.default);
309
- exports.default = exports.Control = Control;
310
309
  /**
311
310
  * 当前类型控件实例个数
312
311
  * @protected
@@ -30,7 +30,7 @@ var PopperPlacementMap = {
30
30
  rightcenter: 'left',
31
31
  rightbottom: 'top-end'
32
32
  };
33
- var PopperControl = /*#__PURE__*/function (_ButtonControl) {
33
+ var PopperControl = exports.default = exports.PopperControl = /*#__PURE__*/function (_ButtonControl) {
34
34
  (0, _inherits2.default)(PopperControl, _ButtonControl);
35
35
  var _super = _createSuper(PopperControl);
36
36
  function PopperControl() {
@@ -122,5 +122,4 @@ var PopperControl = /*#__PURE__*/function (_ButtonControl) {
122
122
  }
123
123
  }]);
124
124
  return PopperControl;
125
- }(_buttonControl.default);
126
- exports.default = exports.PopperControl = PopperControl;
125
+ }(_buttonControl.default);
@@ -24,7 +24,7 @@ var SelectControlConstant = /*#__PURE__*/function (SelectControlConstant) {
24
24
  SelectControlConstant["OptionIndexAttrKey"] = "data-option-index";
25
25
  return SelectControlConstant;
26
26
  }(SelectControlConstant || {});
27
- var SelectControl = /*#__PURE__*/function (_PopperControl) {
27
+ var SelectControl = exports.default = exports.SelectControl = /*#__PURE__*/function (_PopperControl) {
28
28
  (0, _inherits2.default)(SelectControl, _PopperControl);
29
29
  var _super = _createSuper(SelectControl);
30
30
  function SelectControl() {
@@ -206,5 +206,4 @@ var SelectControl = /*#__PURE__*/function (_PopperControl) {
206
206
  }
207
207
  }]);
208
208
  return SelectControl;
209
- }(_popperControl.PopperControl);
210
- exports.default = exports.SelectControl = SelectControl;
209
+ }(_popperControl.PopperControl);