@antv/l7-component 2.17.7 → 2.17.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.
- package/es/control/baseControl/buttonControl.js +19 -0
- package/es/control/baseControl/control.js +14 -1
- package/es/control/baseControl/selectControl.js +11 -1
- package/es/control/exportImage.js +5 -0
- package/es/control/geoLocate.js +3 -4
- package/es/control/zoom.d.ts +3 -0
- package/es/control/zoom.js +12 -3
- package/es/css/index.css +14 -6
- package/es/css/zoom.less +14 -6
- package/es/index.js +1 -1
- package/es/marker-layer.js +2 -0
- package/es/marker.js +7 -1
- package/es/popup/layerPopup.js +11 -1
- package/es/popup/popup.js +37 -42
- package/es/utils/popper.js +22 -0
- package/lib/control/baseControl/buttonControl.js +19 -0
- package/lib/control/baseControl/control.js +14 -1
- package/lib/control/baseControl/selectControl.js +11 -1
- package/lib/control/exportImage.js +5 -0
- package/lib/control/geoLocate.js +3 -4
- package/lib/control/zoom.js +12 -3
- package/lib/css/index.css +14 -6
- package/lib/css/zoom.less +14 -6
- package/lib/index.js +1 -1
- package/lib/marker-layer.js +4 -1
- package/lib/marker.js +7 -1
- package/lib/popup/layerPopup.js +12 -2
- package/lib/popup/popup.js +37 -42
- package/lib/utils/popper.js +23 -0
- package/package.json +6 -6
|
@@ -21,12 +21,31 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
21
21
|
args[_key] = arguments[_key];
|
|
22
22
|
}
|
|
23
23
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
24
|
+
/**
|
|
25
|
+
* 当前按钮是否禁用
|
|
26
|
+
* @protected
|
|
27
|
+
*/
|
|
24
28
|
_defineProperty(_assertThisInitialized(_this), "isDisable", false);
|
|
25
29
|
return _this;
|
|
26
30
|
}
|
|
27
31
|
_createClass(ButtonControl, [{
|
|
28
32
|
key: "setIsDisable",
|
|
29
33
|
value:
|
|
34
|
+
/**
|
|
35
|
+
* 按钮的 DOM
|
|
36
|
+
* @protected
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 按钮中文本对应的 DOM
|
|
41
|
+
* @protected
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 按钮中图标对应的 DOM
|
|
46
|
+
* @protected
|
|
47
|
+
*/
|
|
48
|
+
|
|
30
49
|
/**
|
|
31
50
|
* 设置当前按钮
|
|
32
51
|
* @param newIsDisable
|
|
@@ -17,7 +17,16 @@ var Control = /*#__PURE__*/function (_ref) {
|
|
|
17
17
|
_inherits(Control, _ref);
|
|
18
18
|
var _super = _createSuper(Control);
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 当前控件实例配置
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 控件的 DOM 容器
|
|
25
|
+
* @protected
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 当前控件是否显示
|
|
21
30
|
* @protected
|
|
22
31
|
*/
|
|
23
32
|
|
|
@@ -285,5 +294,9 @@ var Control = /*#__PURE__*/function (_ref) {
|
|
|
285
294
|
}]);
|
|
286
295
|
return Control;
|
|
287
296
|
}(EventEmitter);
|
|
297
|
+
/**
|
|
298
|
+
* 当前类型控件实例个数
|
|
299
|
+
* @protected
|
|
300
|
+
*/
|
|
288
301
|
_defineProperty(Control, "controlCount", 0);
|
|
289
302
|
export { Control as default };
|
|
@@ -28,6 +28,10 @@ var SelectControl = /*#__PURE__*/function (_PopperControl) {
|
|
|
28
28
|
args[_key] = arguments[_key];
|
|
29
29
|
}
|
|
30
30
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
31
|
+
/**
|
|
32
|
+
* 当前选中的值
|
|
33
|
+
* @protected
|
|
34
|
+
*/
|
|
31
35
|
_defineProperty(_assertThisInitialized(_this), "selectValue", []);
|
|
32
36
|
_defineProperty(_assertThisInitialized(_this), "createNormalOption", function (option) {
|
|
33
37
|
var isSelect = _this.selectValue.includes(option.value);
|
|
@@ -62,7 +66,13 @@ var SelectControl = /*#__PURE__*/function (_PopperControl) {
|
|
|
62
66
|
}
|
|
63
67
|
_createClass(SelectControl, [{
|
|
64
68
|
key: "setOptions",
|
|
65
|
-
value:
|
|
69
|
+
value:
|
|
70
|
+
/**
|
|
71
|
+
* 选项对应的 DOM 列表
|
|
72
|
+
* @protected
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
function setOptions(option) {
|
|
66
76
|
_get(_getPrototypeOf(SelectControl.prototype), "setOptions", this).call(this, option);
|
|
67
77
|
var options = option.options;
|
|
68
78
|
if (options) {
|
|
@@ -51,6 +51,11 @@ var ExportImage = /*#__PURE__*/function (_ButtonControl) {
|
|
|
51
51
|
}
|
|
52
52
|
}, _callee);
|
|
53
53
|
})));
|
|
54
|
+
/**
|
|
55
|
+
* 将多张图片合并为一张图片
|
|
56
|
+
* @protected
|
|
57
|
+
* @param base64List
|
|
58
|
+
*/
|
|
54
59
|
_defineProperty(_assertThisInitialized(_this), "mergeImage", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
55
60
|
var _this$mapsService$get, _this$mapsService$get2;
|
|
56
61
|
var imageType,
|
package/es/control/geoLocate.js
CHANGED
|
@@ -22,6 +22,9 @@ var GeoLocate = /*#__PURE__*/function (_ButtonControl) {
|
|
|
22
22
|
var _this;
|
|
23
23
|
_classCallCheck(this, GeoLocate);
|
|
24
24
|
_this = _super.call(this, option);
|
|
25
|
+
/**
|
|
26
|
+
* 通过浏览器 API 获取当前所在经纬度
|
|
27
|
+
*/
|
|
25
28
|
_defineProperty(_assertThisInitialized(_this), "getGeoLocation", function () {
|
|
26
29
|
return new Promise(function (resolve, reject) {
|
|
27
30
|
window.navigator.geolocation.getCurrentPosition(function (_ref) {
|
|
@@ -99,10 +102,6 @@ var GeoLocate = /*#__PURE__*/function (_ButtonControl) {
|
|
|
99
102
|
button.addEventListener('click', this.onClick);
|
|
100
103
|
return button;
|
|
101
104
|
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* 通过浏览器 API 获取当前所在经纬度
|
|
105
|
-
*/
|
|
106
105
|
}]);
|
|
107
106
|
return GeoLocate;
|
|
108
107
|
}(ButtonControl);
|
package/es/control/zoom.d.ts
CHANGED
|
@@ -6,12 +6,14 @@ export interface IZoomControlOption extends IControlOption {
|
|
|
6
6
|
zoomInTitle: string;
|
|
7
7
|
zoomOutText: DOM.ELType | string;
|
|
8
8
|
zoomOutTitle: string;
|
|
9
|
+
showZoom: boolean;
|
|
9
10
|
}
|
|
10
11
|
export { Zoom };
|
|
11
12
|
export default class Zoom extends Control<IZoomControlOption> {
|
|
12
13
|
private disabled;
|
|
13
14
|
private zoomInButton;
|
|
14
15
|
private zoomOutButton;
|
|
16
|
+
private zoomNumDiv;
|
|
15
17
|
getDefault(option: Partial<IZoomControlOption>): {
|
|
16
18
|
position: PositionType;
|
|
17
19
|
name: string;
|
|
@@ -19,6 +21,7 @@ export default class Zoom extends Control<IZoomControlOption> {
|
|
|
19
21
|
zoomInTitle: string;
|
|
20
22
|
zoomOutText: SVGSVGElement;
|
|
21
23
|
zoomOutTitle: string;
|
|
24
|
+
showZoom: boolean;
|
|
22
25
|
className?: string | undefined;
|
|
23
26
|
style?: string | undefined;
|
|
24
27
|
};
|
package/es/control/zoom.js
CHANGED
|
@@ -41,6 +41,9 @@ var Zoom = /*#__PURE__*/function (_Control) {
|
|
|
41
41
|
if (_this.disabled || mapsService.getZoom() <= mapsService.getMinZoom()) {
|
|
42
42
|
_this.zoomOutButton.setAttribute('disabled', 'true');
|
|
43
43
|
}
|
|
44
|
+
if (_this.controlOption.showZoom && _this.zoomNumDiv) {
|
|
45
|
+
_this.zoomNumDiv.innerText = String(Math.floor(mapsService.getZoom()));
|
|
46
|
+
}
|
|
44
47
|
if (_this.disabled || mapsService.getZoom() >= mapsService.getMaxZoom()) {
|
|
45
48
|
_this.zoomInButton.setAttribute('disabled', 'true');
|
|
46
49
|
}
|
|
@@ -56,14 +59,15 @@ var Zoom = /*#__PURE__*/function (_Control) {
|
|
|
56
59
|
zoomInText: createL7Icon('l7-icon-enlarge'),
|
|
57
60
|
zoomInTitle: 'Zoom in',
|
|
58
61
|
zoomOutText: createL7Icon('l7-icon-narrow'),
|
|
59
|
-
zoomOutTitle: 'Zoom out'
|
|
62
|
+
zoomOutTitle: 'Zoom out',
|
|
63
|
+
showZoom: false
|
|
60
64
|
});
|
|
61
65
|
}
|
|
62
66
|
}, {
|
|
63
67
|
key: "setOptions",
|
|
64
68
|
value: function setOptions(newOptions) {
|
|
65
69
|
_get(_getPrototypeOf(Zoom.prototype), "setOptions", this).call(this, newOptions);
|
|
66
|
-
if (this.checkUpdateOption(newOptions, ['zoomInText', 'zoomInTitle', 'zoomOutText', 'zoomOutTitle'])) {
|
|
70
|
+
if (this.checkUpdateOption(newOptions, ['zoomInText', 'zoomInTitle', 'zoomOutText', 'zoomOutTitle', 'showZoom'])) {
|
|
67
71
|
this.resetButtonGroup(this.container);
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -101,6 +105,9 @@ var Zoom = /*#__PURE__*/function (_Control) {
|
|
|
101
105
|
value: function resetButtonGroup(container) {
|
|
102
106
|
DOM.clearChildren(container);
|
|
103
107
|
this.zoomInButton = this.createButton(this.controlOption.zoomInText, this.controlOption.zoomInTitle, 'l7-button-control', container, this.zoomIn);
|
|
108
|
+
if (this.controlOption.showZoom) {
|
|
109
|
+
this.zoomNumDiv = this.createButton('0', '', 'l7-button-control l7-control-zoom__number', container);
|
|
110
|
+
}
|
|
104
111
|
this.zoomOutButton = this.createButton(this.controlOption.zoomOutText, this.controlOption.zoomOutTitle, 'l7-button-control', container, this.zoomOut);
|
|
105
112
|
this.updateDisabled();
|
|
106
113
|
}
|
|
@@ -114,7 +121,9 @@ var Zoom = /*#__PURE__*/function (_Control) {
|
|
|
114
121
|
link.append(html);
|
|
115
122
|
}
|
|
116
123
|
link.title = tile;
|
|
117
|
-
|
|
124
|
+
if (fn) {
|
|
125
|
+
link.addEventListener('click', fn);
|
|
126
|
+
}
|
|
118
127
|
return link;
|
|
119
128
|
}
|
|
120
129
|
}]);
|
package/es/css/index.css
CHANGED
|
@@ -370,21 +370,29 @@
|
|
|
370
370
|
min-width: 130px;
|
|
371
371
|
}
|
|
372
372
|
.l7-control-zoom {
|
|
373
|
-
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
|
|
374
|
-
border-radius: 2px;
|
|
375
373
|
overflow: hidden;
|
|
374
|
+
border-radius: 2px;
|
|
375
|
+
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
|
|
376
376
|
}
|
|
377
377
|
.l7-control-zoom .l7-button-control {
|
|
378
|
-
box-shadow: 0 0 0;
|
|
379
|
-
border-radius: 0;
|
|
380
378
|
font-size: 16px;
|
|
379
|
+
border-bottom: 1px solid #f0f0f0;
|
|
380
|
+
border-radius: 0;
|
|
381
|
+
box-shadow: 0 0 0;
|
|
381
382
|
}
|
|
382
383
|
.l7-control-zoom .l7-button-control .l7-iconfont {
|
|
383
384
|
width: 14px;
|
|
384
385
|
height: 14px;
|
|
385
386
|
}
|
|
386
|
-
.l7-control-zoom .l7-button-control:
|
|
387
|
-
border-bottom:
|
|
387
|
+
.l7-control-zoom .l7-button-control:last-child {
|
|
388
|
+
border-bottom: 0;
|
|
389
|
+
}
|
|
390
|
+
.l7-control-zoom .l7-control-zoom__number {
|
|
391
|
+
color: #595959;
|
|
392
|
+
padding: 0;
|
|
393
|
+
}
|
|
394
|
+
.l7-control-zoom .l7-control-zoom__number:hover {
|
|
395
|
+
background-color: #fff;
|
|
388
396
|
}
|
|
389
397
|
.l7-control-scale {
|
|
390
398
|
display: flex;
|
package/es/css/zoom.less
CHANGED
|
@@ -3,19 +3,27 @@
|
|
|
3
3
|
@zoom-icon-size: 14px;
|
|
4
4
|
|
|
5
5
|
.l7-control-zoom {
|
|
6
|
-
box-shadow: @l7-control-shadow;
|
|
7
|
-
border-radius: @l7-btn-control-border-radius;
|
|
8
6
|
overflow: hidden;
|
|
7
|
+
border-radius: @l7-btn-control-border-radius;
|
|
8
|
+
box-shadow: @l7-control-shadow;
|
|
9
9
|
.l7-button-control {
|
|
10
|
-
box-shadow: 0 0 0;
|
|
11
|
-
border-radius: 0;
|
|
12
10
|
font-size: @l7-btn-icon-size;
|
|
11
|
+
border-bottom: 1px solid @l7-btn-border-color;
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
box-shadow: 0 0 0;
|
|
13
14
|
.l7-iconfont {
|
|
14
15
|
width: @zoom-icon-size;
|
|
15
16
|
height: @zoom-icon-size;
|
|
16
17
|
}
|
|
17
|
-
&:
|
|
18
|
-
border-bottom:
|
|
18
|
+
&:last-child {
|
|
19
|
+
border-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
& &__number {
|
|
23
|
+
color: @l7-control-font-color;
|
|
24
|
+
padding: 0;
|
|
25
|
+
&:hover {
|
|
26
|
+
background-color: @l7-btn-control-bg-color;
|
|
19
27
|
}
|
|
20
28
|
}
|
|
21
29
|
}
|
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: 1000;\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: 800;\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: 1000;\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: 1000;\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: 1000;\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: 1000;\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 -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 border-radius: 2px;\n overflow: hidden;\n}\n.l7-control-zoom .l7-button-control {\n -webkit-box-shadow: 0 0 0;\n box-shadow: 0 0 0;\n border-radius: 0;\n font-size: 16px;\n}\n.l7-control-zoom .l7-button-control .l7-iconfont {\n width: 14px;\n height: 14px;\n}\n.l7-control-zoom .l7-button-control:first-child {\n border-bottom: 1px solid #f0f0f0;\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: 1000;\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: 800;\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: 1000;\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: 1000;\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: 1000;\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: 1000;\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");
|
|
36
36
|
export * from "./control/baseControl";
|
|
37
37
|
export { ExportImage } from "./control/exportImage";
|
|
38
38
|
export { Fullscreen } from "./control/fullscreen";
|
package/es/marker-layer.js
CHANGED
|
@@ -19,6 +19,8 @@ import Marker from "./marker";
|
|
|
19
19
|
var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
|
|
20
20
|
_inherits(MarkerLayer, _EventEmitter);
|
|
21
21
|
var _super = _createSuper(MarkerLayer);
|
|
22
|
+
// 聚合后的marker列表
|
|
23
|
+
|
|
22
24
|
function MarkerLayer(option) {
|
|
23
25
|
var _this$markerLayerOpti;
|
|
24
26
|
var _this;
|
package/es/marker.js
CHANGED
|
@@ -367,7 +367,13 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
|
|
|
367
367
|
}
|
|
368
368
|
}, {
|
|
369
369
|
key: "polyfillEvent",
|
|
370
|
-
value:
|
|
370
|
+
value:
|
|
371
|
+
/**
|
|
372
|
+
* 高德 2.x 使用了 fastClick.js 避免延迟,导致 IOS 移动端的 click 事件不会正常触发,需要手动触发
|
|
373
|
+
* @param e
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
function polyfillEvent(e) {
|
|
371
377
|
if (!this.mapsService || this.mapsService.version !== 'GAODE2.x') {
|
|
372
378
|
return;
|
|
373
379
|
}
|
package/es/popup/layerPopup.js
CHANGED
|
@@ -24,12 +24,22 @@ var LayerPopup = /*#__PURE__*/function (_Popup) {
|
|
|
24
24
|
args[_key] = arguments[_key];
|
|
25
25
|
}
|
|
26
26
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
27
|
+
/**
|
|
28
|
+
* 用于保存图层对应的事件回调以及配置信息
|
|
29
|
+
* @protected
|
|
30
|
+
*/
|
|
27
31
|
_defineProperty(_assertThisInitialized(_this), "layerConfigMap", new WeakMap());
|
|
28
32
|
return _this;
|
|
29
33
|
}
|
|
30
34
|
_createClass(LayerPopup, [{
|
|
31
35
|
key: "layerConfigItems",
|
|
32
|
-
get:
|
|
36
|
+
get:
|
|
37
|
+
/**
|
|
38
|
+
* 当期正在展示的图层以及对应元素 id 的信息
|
|
39
|
+
* @protected
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
function get() {
|
|
33
43
|
var _ref;
|
|
34
44
|
var _this$popupOption = this.popupOption,
|
|
35
45
|
config = _this$popupOption.config,
|
package/es/popup/popup.js
CHANGED
|
@@ -20,6 +20,38 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
|
|
|
20
20
|
var _this;
|
|
21
21
|
_classCallCheck(this, Popup);
|
|
22
22
|
_this = _super.call(this);
|
|
23
|
+
/**
|
|
24
|
+
* 配置
|
|
25
|
+
* @protected
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* 关闭按钮对应的 DOM
|
|
29
|
+
* @protected
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Popup 的总容器 DOM,包含 content 和 tip
|
|
33
|
+
* @protected
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* popup 气泡容器
|
|
37
|
+
* @protected
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* popup 气泡标题
|
|
41
|
+
* @protected
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* popup 内容容器
|
|
45
|
+
* @protected
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* 气泡箭头对应的 DOM
|
|
49
|
+
* @protected
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* 当前是否展示
|
|
53
|
+
* @protected
|
|
54
|
+
*/
|
|
23
55
|
_defineProperty(_assertThisInitialized(_this), "isShow", true);
|
|
24
56
|
_defineProperty(_assertThisInitialized(_this), "onMouseMove", function (e) {
|
|
25
57
|
var _container$getBoundin;
|
|
@@ -31,6 +63,10 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
|
|
|
31
63
|
top = _ref$top === void 0 ? 0 : _ref$top;
|
|
32
64
|
_this.setPopupPosition(e.clientX - left, e.clientY - top);
|
|
33
65
|
});
|
|
66
|
+
/**
|
|
67
|
+
* 将经纬度转换成对应的像素偏移位置
|
|
68
|
+
* @protected
|
|
69
|
+
*/
|
|
34
70
|
_defineProperty(_assertThisInitialized(_this), "updateLngLatPosition", function () {
|
|
35
71
|
if (!_this.mapsService || _this.popupOption.followCursor) {
|
|
36
72
|
return;
|
|
@@ -107,48 +143,7 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
|
|
|
107
143
|
}
|
|
108
144
|
_createClass(Popup, [{
|
|
109
145
|
key: "lngLat",
|
|
110
|
-
get:
|
|
111
|
-
/**
|
|
112
|
-
* 配置
|
|
113
|
-
* @protected
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* 关闭按钮对应的 DOM
|
|
118
|
-
* @protected
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Popup 的总容器 DOM,包含 content 和 tip
|
|
123
|
-
* @protected
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* popup 气泡容器
|
|
128
|
-
* @protected
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* popup 气泡标题
|
|
133
|
-
* @protected
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* popup 内容容器
|
|
138
|
-
* @protected
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 气泡箭头对应的 DOM
|
|
143
|
-
* @protected
|
|
144
|
-
*/
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* 当前是否展示
|
|
148
|
-
* @protected
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
|
-
function get() {
|
|
146
|
+
get: function get() {
|
|
152
147
|
var _this$popupOption$lng;
|
|
153
148
|
return (_this$popupOption$lng = this.popupOption.lngLat) !== null && _this$popupOption$lng !== void 0 ? _this$popupOption$lng : {
|
|
154
149
|
lng: 0,
|
package/es/utils/popper.js
CHANGED
|
@@ -15,6 +15,14 @@ import { EventEmitter } from 'eventemitter3';
|
|
|
15
15
|
* 气泡位置枚举
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* 气泡触发类型,当前支持 click 和 hover 两种类型
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 气泡内容类型
|
|
24
|
+
*/
|
|
25
|
+
|
|
18
26
|
export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
19
27
|
_inherits(Popper, _EventEmitter);
|
|
20
28
|
var _super = _createSuper(Popper);
|
|
@@ -22,7 +30,15 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
22
30
|
var _this;
|
|
23
31
|
_classCallCheck(this, Popper);
|
|
24
32
|
_this = _super.call(this);
|
|
33
|
+
/**
|
|
34
|
+
* 当前是否展示
|
|
35
|
+
* @protected
|
|
36
|
+
*/
|
|
25
37
|
_defineProperty(_assertThisInitialized(_this), "isShow", false);
|
|
38
|
+
/**
|
|
39
|
+
* 关闭气泡的定时器
|
|
40
|
+
* @protected
|
|
41
|
+
*/
|
|
26
42
|
_defineProperty(_assertThisInitialized(_this), "timeout", null);
|
|
27
43
|
_defineProperty(_assertThisInitialized(_this), "show", function () {
|
|
28
44
|
if (_this.isShow || !_this.contentDOM.innerHTML) {
|
|
@@ -51,6 +67,9 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
51
67
|
_this.emit('hide');
|
|
52
68
|
return _assertThisInitialized(_this);
|
|
53
69
|
});
|
|
70
|
+
/**
|
|
71
|
+
* 设置隐藏气泡的定时器
|
|
72
|
+
*/
|
|
54
73
|
_defineProperty(_assertThisInitialized(_this), "setHideTimeout", function () {
|
|
55
74
|
if (_this.timeout) {
|
|
56
75
|
return;
|
|
@@ -63,6 +82,9 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
63
82
|
_this.timeout = null;
|
|
64
83
|
}, 300);
|
|
65
84
|
});
|
|
85
|
+
/**
|
|
86
|
+
* 销毁隐藏气泡的定时器
|
|
87
|
+
*/
|
|
66
88
|
_defineProperty(_assertThisInitialized(_this), "clearHideTimeout", function () {
|
|
67
89
|
if (_this.timeout) {
|
|
68
90
|
window.clearTimeout(_this.timeout);
|
|
@@ -27,12 +27,31 @@ var ButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
27
27
|
args[_key] = arguments[_key];
|
|
28
28
|
}
|
|
29
29
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
30
|
+
/**
|
|
31
|
+
* 当前按钮是否禁用
|
|
32
|
+
* @protected
|
|
33
|
+
*/
|
|
30
34
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isDisable", false);
|
|
31
35
|
return _this;
|
|
32
36
|
}
|
|
33
37
|
(0, _createClass2.default)(ButtonControl, [{
|
|
34
38
|
key: "setIsDisable",
|
|
35
39
|
value:
|
|
40
|
+
/**
|
|
41
|
+
* 按钮的 DOM
|
|
42
|
+
* @protected
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 按钮中文本对应的 DOM
|
|
47
|
+
* @protected
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 按钮中图标对应的 DOM
|
|
52
|
+
* @protected
|
|
53
|
+
*/
|
|
54
|
+
|
|
36
55
|
/**
|
|
37
56
|
* 设置当前按钮
|
|
38
57
|
* @param newIsDisable
|
|
@@ -29,7 +29,16 @@ var Control = /*#__PURE__*/function (_ref) {
|
|
|
29
29
|
(0, _inherits2.default)(Control, _ref);
|
|
30
30
|
var _super = _createSuper(Control);
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* 当前控件实例配置
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 控件的 DOM 容器
|
|
37
|
+
* @protected
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 当前控件是否显示
|
|
33
42
|
* @protected
|
|
34
43
|
*/
|
|
35
44
|
|
|
@@ -298,4 +307,8 @@ var Control = /*#__PURE__*/function (_ref) {
|
|
|
298
307
|
return Control;
|
|
299
308
|
}(_eventemitter.default);
|
|
300
309
|
exports.default = exports.Control = Control;
|
|
310
|
+
/**
|
|
311
|
+
* 当前类型控件实例个数
|
|
312
|
+
* @protected
|
|
313
|
+
*/
|
|
301
314
|
(0, _defineProperty2.default)(Control, "controlCount", 0);
|
|
@@ -34,6 +34,10 @@ var SelectControl = /*#__PURE__*/function (_PopperControl) {
|
|
|
34
34
|
args[_key] = arguments[_key];
|
|
35
35
|
}
|
|
36
36
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37
|
+
/**
|
|
38
|
+
* 当前选中的值
|
|
39
|
+
* @protected
|
|
40
|
+
*/
|
|
37
41
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "selectValue", []);
|
|
38
42
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createNormalOption", function (option) {
|
|
39
43
|
var isSelect = _this.selectValue.includes(option.value);
|
|
@@ -68,7 +72,13 @@ var SelectControl = /*#__PURE__*/function (_PopperControl) {
|
|
|
68
72
|
}
|
|
69
73
|
(0, _createClass2.default)(SelectControl, [{
|
|
70
74
|
key: "setOptions",
|
|
71
|
-
value:
|
|
75
|
+
value:
|
|
76
|
+
/**
|
|
77
|
+
* 选项对应的 DOM 列表
|
|
78
|
+
* @protected
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
function setOptions(option) {
|
|
72
82
|
(0, _get2.default)((0, _getPrototypeOf2.default)(SelectControl.prototype), "setOptions", this).call(this, option);
|
|
73
83
|
var options = option.options;
|
|
74
84
|
if (options) {
|
|
@@ -57,6 +57,11 @@ var ExportImage = /*#__PURE__*/function (_ButtonControl) {
|
|
|
57
57
|
}
|
|
58
58
|
}, _callee);
|
|
59
59
|
})));
|
|
60
|
+
/**
|
|
61
|
+
* 将多张图片合并为一张图片
|
|
62
|
+
* @protected
|
|
63
|
+
* @param base64List
|
|
64
|
+
*/
|
|
60
65
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mergeImage", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
61
66
|
var _this$mapsService$get, _this$mapsService$get2;
|
|
62
67
|
var imageType,
|
package/lib/control/geoLocate.js
CHANGED
|
@@ -28,6 +28,9 @@ var GeoLocate = /*#__PURE__*/function (_ButtonControl) {
|
|
|
28
28
|
var _this;
|
|
29
29
|
(0, _classCallCheck2.default)(this, GeoLocate);
|
|
30
30
|
_this = _super.call(this, option);
|
|
31
|
+
/**
|
|
32
|
+
* 通过浏览器 API 获取当前所在经纬度
|
|
33
|
+
*/
|
|
31
34
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getGeoLocation", function () {
|
|
32
35
|
return new Promise(function (resolve, reject) {
|
|
33
36
|
window.navigator.geolocation.getCurrentPosition(function (_ref) {
|
|
@@ -105,10 +108,6 @@ var GeoLocate = /*#__PURE__*/function (_ButtonControl) {
|
|
|
105
108
|
button.addEventListener('click', this.onClick);
|
|
106
109
|
return button;
|
|
107
110
|
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* 通过浏览器 API 获取当前所在经纬度
|
|
111
|
-
*/
|
|
112
111
|
}]);
|
|
113
112
|
return GeoLocate;
|
|
114
113
|
}(_buttonControl.default);
|
package/lib/control/zoom.js
CHANGED
|
@@ -47,6 +47,9 @@ var Zoom = /*#__PURE__*/function (_Control) {
|
|
|
47
47
|
if (_this.disabled || mapsService.getZoom() <= mapsService.getMinZoom()) {
|
|
48
48
|
_this.zoomOutButton.setAttribute('disabled', 'true');
|
|
49
49
|
}
|
|
50
|
+
if (_this.controlOption.showZoom && _this.zoomNumDiv) {
|
|
51
|
+
_this.zoomNumDiv.innerText = String(Math.floor(mapsService.getZoom()));
|
|
52
|
+
}
|
|
50
53
|
if (_this.disabled || mapsService.getZoom() >= mapsService.getMaxZoom()) {
|
|
51
54
|
_this.zoomInButton.setAttribute('disabled', 'true');
|
|
52
55
|
}
|
|
@@ -62,14 +65,15 @@ var Zoom = /*#__PURE__*/function (_Control) {
|
|
|
62
65
|
zoomInText: (0, _icon.createL7Icon)('l7-icon-enlarge'),
|
|
63
66
|
zoomInTitle: 'Zoom in',
|
|
64
67
|
zoomOutText: (0, _icon.createL7Icon)('l7-icon-narrow'),
|
|
65
|
-
zoomOutTitle: 'Zoom out'
|
|
68
|
+
zoomOutTitle: 'Zoom out',
|
|
69
|
+
showZoom: false
|
|
66
70
|
});
|
|
67
71
|
}
|
|
68
72
|
}, {
|
|
69
73
|
key: "setOptions",
|
|
70
74
|
value: function setOptions(newOptions) {
|
|
71
75
|
(0, _get2.default)((0, _getPrototypeOf2.default)(Zoom.prototype), "setOptions", this).call(this, newOptions);
|
|
72
|
-
if (this.checkUpdateOption(newOptions, ['zoomInText', 'zoomInTitle', 'zoomOutText', 'zoomOutTitle'])) {
|
|
76
|
+
if (this.checkUpdateOption(newOptions, ['zoomInText', 'zoomInTitle', 'zoomOutText', 'zoomOutTitle', 'showZoom'])) {
|
|
73
77
|
this.resetButtonGroup(this.container);
|
|
74
78
|
}
|
|
75
79
|
}
|
|
@@ -107,6 +111,9 @@ var Zoom = /*#__PURE__*/function (_Control) {
|
|
|
107
111
|
value: function resetButtonGroup(container) {
|
|
108
112
|
_l7Utils.DOM.clearChildren(container);
|
|
109
113
|
this.zoomInButton = this.createButton(this.controlOption.zoomInText, this.controlOption.zoomInTitle, 'l7-button-control', container, this.zoomIn);
|
|
114
|
+
if (this.controlOption.showZoom) {
|
|
115
|
+
this.zoomNumDiv = this.createButton('0', '', 'l7-button-control l7-control-zoom__number', container);
|
|
116
|
+
}
|
|
110
117
|
this.zoomOutButton = this.createButton(this.controlOption.zoomOutText, this.controlOption.zoomOutTitle, 'l7-button-control', container, this.zoomOut);
|
|
111
118
|
this.updateDisabled();
|
|
112
119
|
}
|
|
@@ -120,7 +127,9 @@ var Zoom = /*#__PURE__*/function (_Control) {
|
|
|
120
127
|
link.append(html);
|
|
121
128
|
}
|
|
122
129
|
link.title = tile;
|
|
123
|
-
|
|
130
|
+
if (fn) {
|
|
131
|
+
link.addEventListener('click', fn);
|
|
132
|
+
}
|
|
124
133
|
return link;
|
|
125
134
|
}
|
|
126
135
|
}]);
|
package/lib/css/index.css
CHANGED
|
@@ -370,21 +370,29 @@
|
|
|
370
370
|
min-width: 130px;
|
|
371
371
|
}
|
|
372
372
|
.l7-control-zoom {
|
|
373
|
-
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
|
|
374
|
-
border-radius: 2px;
|
|
375
373
|
overflow: hidden;
|
|
374
|
+
border-radius: 2px;
|
|
375
|
+
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
|
|
376
376
|
}
|
|
377
377
|
.l7-control-zoom .l7-button-control {
|
|
378
|
-
box-shadow: 0 0 0;
|
|
379
|
-
border-radius: 0;
|
|
380
378
|
font-size: 16px;
|
|
379
|
+
border-bottom: 1px solid #f0f0f0;
|
|
380
|
+
border-radius: 0;
|
|
381
|
+
box-shadow: 0 0 0;
|
|
381
382
|
}
|
|
382
383
|
.l7-control-zoom .l7-button-control .l7-iconfont {
|
|
383
384
|
width: 14px;
|
|
384
385
|
height: 14px;
|
|
385
386
|
}
|
|
386
|
-
.l7-control-zoom .l7-button-control:
|
|
387
|
-
border-bottom:
|
|
387
|
+
.l7-control-zoom .l7-button-control:last-child {
|
|
388
|
+
border-bottom: 0;
|
|
389
|
+
}
|
|
390
|
+
.l7-control-zoom .l7-control-zoom__number {
|
|
391
|
+
color: #595959;
|
|
392
|
+
padding: 0;
|
|
393
|
+
}
|
|
394
|
+
.l7-control-zoom .l7-control-zoom__number:hover {
|
|
395
|
+
background-color: #fff;
|
|
388
396
|
}
|
|
389
397
|
.l7-control-scale {
|
|
390
398
|
display: flex;
|
package/lib/css/zoom.less
CHANGED
|
@@ -3,19 +3,27 @@
|
|
|
3
3
|
@zoom-icon-size: 14px;
|
|
4
4
|
|
|
5
5
|
.l7-control-zoom {
|
|
6
|
-
box-shadow: @l7-control-shadow;
|
|
7
|
-
border-radius: @l7-btn-control-border-radius;
|
|
8
6
|
overflow: hidden;
|
|
7
|
+
border-radius: @l7-btn-control-border-radius;
|
|
8
|
+
box-shadow: @l7-control-shadow;
|
|
9
9
|
.l7-button-control {
|
|
10
|
-
box-shadow: 0 0 0;
|
|
11
|
-
border-radius: 0;
|
|
12
10
|
font-size: @l7-btn-icon-size;
|
|
11
|
+
border-bottom: 1px solid @l7-btn-border-color;
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
box-shadow: 0 0 0;
|
|
13
14
|
.l7-iconfont {
|
|
14
15
|
width: @zoom-icon-size;
|
|
15
16
|
height: @zoom-icon-size;
|
|
16
17
|
}
|
|
17
|
-
&:
|
|
18
|
-
border-bottom:
|
|
18
|
+
&:last-child {
|
|
19
|
+
border-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
& &__number {
|
|
23
|
+
color: @l7-control-font-color;
|
|
24
|
+
padding: 0;
|
|
25
|
+
&:hover {
|
|
26
|
+
background-color: @l7-btn-control-bg-color;
|
|
19
27
|
}
|
|
20
28
|
}
|
|
21
29
|
}
|
package/lib/index.js
CHANGED
|
@@ -166,4 +166,4 @@ function loadStyles(css, doc) {
|
|
|
166
166
|
head.appendChild(style);
|
|
167
167
|
return style;
|
|
168
168
|
}
|
|
169
|
-
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: 1000;\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: 800;\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: 1000;\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: 1000;\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: 1000;\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: 1000;\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 -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 border-radius: 2px;\n overflow: hidden;\n}\n.l7-control-zoom .l7-button-control {\n -webkit-box-shadow: 0 0 0;\n box-shadow: 0 0 0;\n border-radius: 0;\n font-size: 16px;\n}\n.l7-control-zoom .l7-button-control .l7-iconfont {\n width: 14px;\n height: 14px;\n}\n.l7-control-zoom .l7-button-control:first-child {\n border-bottom: 1px solid #f0f0f0;\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");
|
|
169
|
+
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: 1000;\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: 800;\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: 1000;\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: 1000;\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: 1000;\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: 1000;\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");
|
package/lib/marker-layer.js
CHANGED
|
@@ -20,10 +20,13 @@ var _lodash = require("lodash");
|
|
|
20
20
|
var _supercluster = _interopRequireDefault(require("supercluster/dist/supercluster"));
|
|
21
21
|
var _marker = _interopRequireDefault(require("./marker"));
|
|
22
22
|
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); }; }
|
|
23
|
-
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; } }
|
|
23
|
+
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; } } // @ts-ignore
|
|
24
|
+
// tslint:disable-next-line:no-submodule-imports
|
|
24
25
|
var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
|
|
25
26
|
(0, _inherits2.default)(MarkerLayer, _EventEmitter);
|
|
26
27
|
var _super = _createSuper(MarkerLayer);
|
|
28
|
+
// 聚合后的marker列表
|
|
29
|
+
|
|
27
30
|
function MarkerLayer(option) {
|
|
28
31
|
var _this$markerLayerOpti;
|
|
29
32
|
var _this;
|
package/lib/marker.js
CHANGED
|
@@ -374,7 +374,13 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
|
|
|
374
374
|
}
|
|
375
375
|
}, {
|
|
376
376
|
key: "polyfillEvent",
|
|
377
|
-
value:
|
|
377
|
+
value:
|
|
378
|
+
/**
|
|
379
|
+
* 高德 2.x 使用了 fastClick.js 避免延迟,导致 IOS 移动端的 click 事件不会正常触发,需要手动触发
|
|
380
|
+
* @param e
|
|
381
|
+
*/
|
|
382
|
+
|
|
383
|
+
function polyfillEvent(e) {
|
|
378
384
|
if (!this.mapsService || this.mapsService.version !== 'GAODE2.x') {
|
|
379
385
|
return;
|
|
380
386
|
}
|
package/lib/popup/layerPopup.js
CHANGED
|
@@ -18,7 +18,7 @@ var _l7Utils = require("@antv/l7-utils");
|
|
|
18
18
|
var _lodash = require("lodash");
|
|
19
19
|
var _popup = _interopRequireDefault(require("./popup"));
|
|
20
20
|
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); }; }
|
|
21
|
-
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; } }
|
|
21
|
+
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; } } // import { Container } from 'inversify';
|
|
22
22
|
var LayerPopup = /*#__PURE__*/function (_Popup) {
|
|
23
23
|
(0, _inherits2.default)(LayerPopup, _Popup);
|
|
24
24
|
var _super = _createSuper(LayerPopup);
|
|
@@ -29,12 +29,22 @@ var LayerPopup = /*#__PURE__*/function (_Popup) {
|
|
|
29
29
|
args[_key] = arguments[_key];
|
|
30
30
|
}
|
|
31
31
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
32
|
+
/**
|
|
33
|
+
* 用于保存图层对应的事件回调以及配置信息
|
|
34
|
+
* @protected
|
|
35
|
+
*/
|
|
32
36
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "layerConfigMap", new WeakMap());
|
|
33
37
|
return _this;
|
|
34
38
|
}
|
|
35
39
|
(0, _createClass2.default)(LayerPopup, [{
|
|
36
40
|
key: "layerConfigItems",
|
|
37
|
-
get:
|
|
41
|
+
get:
|
|
42
|
+
/**
|
|
43
|
+
* 当期正在展示的图层以及对应元素 id 的信息
|
|
44
|
+
* @protected
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
function get() {
|
|
38
48
|
var _ref;
|
|
39
49
|
var _this$popupOption = this.popupOption,
|
|
40
50
|
config = _this$popupOption.config,
|
package/lib/popup/popup.js
CHANGED
|
@@ -26,6 +26,38 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
|
|
|
26
26
|
var _this;
|
|
27
27
|
(0, _classCallCheck2.default)(this, Popup);
|
|
28
28
|
_this = _super.call(this);
|
|
29
|
+
/**
|
|
30
|
+
* 配置
|
|
31
|
+
* @protected
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* 关闭按钮对应的 DOM
|
|
35
|
+
* @protected
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* Popup 的总容器 DOM,包含 content 和 tip
|
|
39
|
+
* @protected
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* popup 气泡容器
|
|
43
|
+
* @protected
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* popup 气泡标题
|
|
47
|
+
* @protected
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* popup 内容容器
|
|
51
|
+
* @protected
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* 气泡箭头对应的 DOM
|
|
55
|
+
* @protected
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* 当前是否展示
|
|
59
|
+
* @protected
|
|
60
|
+
*/
|
|
29
61
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isShow", true);
|
|
30
62
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onMouseMove", function (e) {
|
|
31
63
|
var _container$getBoundin;
|
|
@@ -37,6 +69,10 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
|
|
|
37
69
|
top = _ref$top === void 0 ? 0 : _ref$top;
|
|
38
70
|
_this.setPopupPosition(e.clientX - left, e.clientY - top);
|
|
39
71
|
});
|
|
72
|
+
/**
|
|
73
|
+
* 将经纬度转换成对应的像素偏移位置
|
|
74
|
+
* @protected
|
|
75
|
+
*/
|
|
40
76
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateLngLatPosition", function () {
|
|
41
77
|
if (!_this.mapsService || _this.popupOption.followCursor) {
|
|
42
78
|
return;
|
|
@@ -113,48 +149,7 @@ var Popup = /*#__PURE__*/function (_EventEmitter) {
|
|
|
113
149
|
}
|
|
114
150
|
(0, _createClass2.default)(Popup, [{
|
|
115
151
|
key: "lngLat",
|
|
116
|
-
get:
|
|
117
|
-
/**
|
|
118
|
-
* 配置
|
|
119
|
-
* @protected
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* 关闭按钮对应的 DOM
|
|
124
|
-
* @protected
|
|
125
|
-
*/
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Popup 的总容器 DOM,包含 content 和 tip
|
|
129
|
-
* @protected
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* popup 气泡容器
|
|
134
|
-
* @protected
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* popup 气泡标题
|
|
139
|
-
* @protected
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* popup 内容容器
|
|
144
|
-
* @protected
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* 气泡箭头对应的 DOM
|
|
149
|
-
* @protected
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* 当前是否展示
|
|
154
|
-
* @protected
|
|
155
|
-
*/
|
|
156
|
-
|
|
157
|
-
function get() {
|
|
152
|
+
get: function get() {
|
|
158
153
|
var _this$popupOption$lng;
|
|
159
154
|
return (_this$popupOption$lng = this.popupOption.lngLat) !== null && _this$popupOption$lng !== void 0 ? _this$popupOption$lng : {
|
|
160
155
|
lng: 0,
|
package/lib/utils/popper.js
CHANGED
|
@@ -17,6 +17,15 @@ var _l7Utils = require("@antv/l7-utils");
|
|
|
17
17
|
var _eventemitter = require("eventemitter3");
|
|
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
|
+
/**
|
|
21
|
+
* 气泡位置枚举
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* 气泡触发类型,当前支持 click 和 hover 两种类型
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* 气泡内容类型
|
|
28
|
+
*/
|
|
20
29
|
var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
21
30
|
(0, _inherits2.default)(Popper, _EventEmitter);
|
|
22
31
|
var _super = _createSuper(Popper);
|
|
@@ -24,7 +33,15 @@ var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
24
33
|
var _this;
|
|
25
34
|
(0, _classCallCheck2.default)(this, Popper);
|
|
26
35
|
_this = _super.call(this);
|
|
36
|
+
/**
|
|
37
|
+
* 当前是否展示
|
|
38
|
+
* @protected
|
|
39
|
+
*/
|
|
27
40
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isShow", false);
|
|
41
|
+
/**
|
|
42
|
+
* 关闭气泡的定时器
|
|
43
|
+
* @protected
|
|
44
|
+
*/
|
|
28
45
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "timeout", null);
|
|
29
46
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "show", function () {
|
|
30
47
|
if (_this.isShow || !_this.contentDOM.innerHTML) {
|
|
@@ -53,6 +70,9 @@ var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
53
70
|
_this.emit('hide');
|
|
54
71
|
return (0, _assertThisInitialized2.default)(_this);
|
|
55
72
|
});
|
|
73
|
+
/**
|
|
74
|
+
* 设置隐藏气泡的定时器
|
|
75
|
+
*/
|
|
56
76
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "setHideTimeout", function () {
|
|
57
77
|
if (_this.timeout) {
|
|
58
78
|
return;
|
|
@@ -65,6 +85,9 @@ var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
65
85
|
_this.timeout = null;
|
|
66
86
|
}, 300);
|
|
67
87
|
});
|
|
88
|
+
/**
|
|
89
|
+
* 销毁隐藏气泡的定时器
|
|
90
|
+
*/
|
|
68
91
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "clearHideTimeout", function () {
|
|
69
92
|
if (_this.timeout) {
|
|
70
93
|
window.clearTimeout(_this.timeout);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-component",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"author": "lzxue",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@antv/l7-core": "2.17.
|
|
30
|
-
"@antv/l7-utils": "2.17.
|
|
29
|
+
"@antv/l7-core": "2.17.10",
|
|
30
|
+
"@antv/l7-utils": "2.17.10",
|
|
31
31
|
"@babel/runtime": "^7.7.7",
|
|
32
32
|
"eventemitter3": "^4.0.0",
|
|
33
33
|
"inversify": "^5.0.1",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"supercluster": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@antv/l7-layers": "2.17.
|
|
40
|
-
"@antv/l7-test-utils": "2.17.
|
|
39
|
+
"@antv/l7-layers": "2.17.10",
|
|
40
|
+
"@antv/l7-test-utils": "2.17.10",
|
|
41
41
|
"gcoord": "^0.3.2",
|
|
42
42
|
"less": "^4.1.3"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "58ed9272beb1b324082485e424d712d2890f23c7",
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
}
|