@antv/l7-component 2.13.5 → 2.13.7
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/index.d.ts +1 -1
- package/es/control/baseControl/index.js +1 -1
- package/es/index.d.ts +6 -6
- package/es/index.js +7 -7
- package/es/marker-layer.js +12 -3
- package/es/marker.js +6 -2
- package/lib/control/baseControl/index.js +8 -8
- package/lib/index.js +36 -36
- package/lib/marker-layer.js +12 -3
- package/lib/marker.js +6 -2
- package/package.json +6 -5
package/es/index.d.ts
CHANGED
|
@@ -3,16 +3,16 @@ import MarkerLayer from './marker-layer';
|
|
|
3
3
|
import './assets/iconfont/iconfont.js';
|
|
4
4
|
import './css/index.css';
|
|
5
5
|
export * from './control/baseControl';
|
|
6
|
-
export * from './control/logo';
|
|
7
|
-
export * from './control/fullscreen';
|
|
8
6
|
export * from './control/exportImage';
|
|
7
|
+
export * from './control/fullscreen';
|
|
9
8
|
export * from './control/geoLocate';
|
|
10
|
-
export * from './control/mapTheme';
|
|
11
9
|
export * from './control/layerSwitch';
|
|
10
|
+
export * from './control/logo';
|
|
11
|
+
export * from './control/mapTheme';
|
|
12
12
|
export * from './control/mouseLocation';
|
|
13
|
-
export * from './control/zoom';
|
|
14
13
|
export * from './control/scale';
|
|
15
|
-
export * from './
|
|
14
|
+
export * from './control/zoom';
|
|
15
|
+
export * from './interface';
|
|
16
16
|
export * from './popup/layerPopup';
|
|
17
|
+
export * from './popup/popup';
|
|
17
18
|
export { Marker, MarkerLayer };
|
|
18
|
-
export * from './interface';
|
package/es/index.js
CHANGED
|
@@ -44,16 +44,16 @@ function loadStyles(css, doc) {
|
|
|
44
44
|
|
|
45
45
|
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");
|
|
46
46
|
export * from "./control/baseControl";
|
|
47
|
-
export * from "./control/logo";
|
|
48
|
-
export * from "./control/fullscreen";
|
|
49
47
|
export * from "./control/exportImage";
|
|
48
|
+
export * from "./control/fullscreen";
|
|
50
49
|
export * from "./control/geoLocate";
|
|
51
|
-
export * from "./control/mapTheme";
|
|
52
50
|
export * from "./control/layerSwitch";
|
|
51
|
+
export * from "./control/logo";
|
|
52
|
+
export * from "./control/mapTheme";
|
|
53
53
|
export * from "./control/mouseLocation";
|
|
54
|
-
export * from "./control/zoom";
|
|
55
54
|
export * from "./control/scale";
|
|
56
|
-
export * from "./
|
|
55
|
+
export * from "./control/zoom";
|
|
56
|
+
export * from "./interface";
|
|
57
57
|
export * from "./popup/layerPopup";
|
|
58
|
-
export
|
|
59
|
-
export
|
|
58
|
+
export * from "./popup/popup";
|
|
59
|
+
export { Marker, MarkerLayer };
|
package/es/marker-layer.js
CHANGED
|
@@ -90,7 +90,10 @@ var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
|
|
|
90
90
|
}, {
|
|
91
91
|
key: "setContainerSize",
|
|
92
92
|
value: function setContainerSize() {
|
|
93
|
-
if (!this.mapsService)
|
|
93
|
+
if (!this.mapsService) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
|
|
94
97
|
var container = this.mapsService.getContainer();
|
|
95
98
|
this.containerSize = {
|
|
96
99
|
containerWidth: (container === null || container === void 0 ? void 0 : container.scrollWidth) || 0,
|
|
@@ -332,9 +335,15 @@ var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
|
|
|
332
335
|
}, {
|
|
333
336
|
key: "update",
|
|
334
337
|
value: function update() {
|
|
335
|
-
if (!this.mapsService)
|
|
338
|
+
if (!this.mapsService) {
|
|
339
|
+
return;
|
|
340
|
+
} // 当图层中无marker时,无需更新
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
if (this.markers.length === 0) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
336
346
|
|
|
337
|
-
if (this.markers.length === 0) return;
|
|
338
347
|
var zoom = this.mapsService.getZoom();
|
|
339
348
|
var bbox = this.mapsService.getBounds();
|
|
340
349
|
|
package/es/marker.js
CHANGED
|
@@ -48,7 +48,8 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
|
|
|
48
48
|
|
|
49
49
|
_createClass(Marker, [{
|
|
50
50
|
key: "getMarkerLayerContainerSize",
|
|
51
|
-
value:
|
|
51
|
+
value: // tslint:disable-next-line: no-empty
|
|
52
|
+
function getMarkerLayerContainerSize() {}
|
|
52
53
|
}, {
|
|
53
54
|
key: "getDefault",
|
|
54
55
|
value: function getDefault() {
|
|
@@ -318,7 +319,10 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
|
|
|
318
319
|
containerWidth = _ref.containerWidth,
|
|
319
320
|
bounds = _ref.bounds;
|
|
320
321
|
|
|
321
|
-
if (!bounds)
|
|
322
|
+
if (!bounds) {
|
|
323
|
+
return;
|
|
324
|
+
} // 当前可视区域包含跨日界线
|
|
325
|
+
|
|
322
326
|
|
|
323
327
|
if (Math.abs(bounds[0][0]) > 180 || Math.abs(bounds[1][0]) > 180) {
|
|
324
328
|
if (pos.x > containerWidth) {
|
|
@@ -4,28 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _buttonControl = require("./buttonControl");
|
|
8
8
|
|
|
9
|
-
Object.keys(
|
|
9
|
+
Object.keys(_buttonControl).forEach(function (key) {
|
|
10
10
|
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (key in exports && exports[key] ===
|
|
11
|
+
if (key in exports && exports[key] === _buttonControl[key]) return;
|
|
12
12
|
Object.defineProperty(exports, key, {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _buttonControl[key];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _control = require("./control");
|
|
21
21
|
|
|
22
|
-
Object.keys(
|
|
22
|
+
Object.keys(_control).forEach(function (key) {
|
|
23
23
|
if (key === "default" || key === "__esModule") return;
|
|
24
|
-
if (key in exports && exports[key] ===
|
|
24
|
+
if (key in exports && exports[key] === _control[key]) return;
|
|
25
25
|
Object.defineProperty(exports, key, {
|
|
26
26
|
enumerable: true,
|
|
27
27
|
get: function get() {
|
|
28
|
-
return
|
|
28
|
+
return _control[key];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
});
|
package/lib/index.js
CHANGED
|
@@ -42,16 +42,16 @@ Object.keys(_baseControl).forEach(function (key) {
|
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _exportImage = require("./control/exportImage");
|
|
46
46
|
|
|
47
|
-
Object.keys(
|
|
47
|
+
Object.keys(_exportImage).forEach(function (key) {
|
|
48
48
|
if (key === "default" || key === "__esModule") return;
|
|
49
49
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
50
|
-
if (key in exports && exports[key] ===
|
|
50
|
+
if (key in exports && exports[key] === _exportImage[key]) return;
|
|
51
51
|
Object.defineProperty(exports, key, {
|
|
52
52
|
enumerable: true,
|
|
53
53
|
get: function get() {
|
|
54
|
-
return
|
|
54
|
+
return _exportImage[key];
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
});
|
|
@@ -70,58 +70,58 @@ Object.keys(_fullscreen).forEach(function (key) {
|
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _geoLocate = require("./control/geoLocate");
|
|
74
74
|
|
|
75
|
-
Object.keys(
|
|
75
|
+
Object.keys(_geoLocate).forEach(function (key) {
|
|
76
76
|
if (key === "default" || key === "__esModule") return;
|
|
77
77
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
78
|
-
if (key in exports && exports[key] ===
|
|
78
|
+
if (key in exports && exports[key] === _geoLocate[key]) return;
|
|
79
79
|
Object.defineProperty(exports, key, {
|
|
80
80
|
enumerable: true,
|
|
81
81
|
get: function get() {
|
|
82
|
-
return
|
|
82
|
+
return _geoLocate[key];
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
var
|
|
87
|
+
var _layerSwitch = require("./control/layerSwitch");
|
|
88
88
|
|
|
89
|
-
Object.keys(
|
|
89
|
+
Object.keys(_layerSwitch).forEach(function (key) {
|
|
90
90
|
if (key === "default" || key === "__esModule") return;
|
|
91
91
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
92
|
-
if (key in exports && exports[key] ===
|
|
92
|
+
if (key in exports && exports[key] === _layerSwitch[key]) return;
|
|
93
93
|
Object.defineProperty(exports, key, {
|
|
94
94
|
enumerable: true,
|
|
95
95
|
get: function get() {
|
|
96
|
-
return
|
|
96
|
+
return _layerSwitch[key];
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
-
var
|
|
101
|
+
var _logo = require("./control/logo");
|
|
102
102
|
|
|
103
|
-
Object.keys(
|
|
103
|
+
Object.keys(_logo).forEach(function (key) {
|
|
104
104
|
if (key === "default" || key === "__esModule") return;
|
|
105
105
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
106
|
-
if (key in exports && exports[key] ===
|
|
106
|
+
if (key in exports && exports[key] === _logo[key]) return;
|
|
107
107
|
Object.defineProperty(exports, key, {
|
|
108
108
|
enumerable: true,
|
|
109
109
|
get: function get() {
|
|
110
|
-
return
|
|
110
|
+
return _logo[key];
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
-
var
|
|
115
|
+
var _mapTheme = require("./control/mapTheme");
|
|
116
116
|
|
|
117
|
-
Object.keys(
|
|
117
|
+
Object.keys(_mapTheme).forEach(function (key) {
|
|
118
118
|
if (key === "default" || key === "__esModule") return;
|
|
119
119
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
120
|
-
if (key in exports && exports[key] ===
|
|
120
|
+
if (key in exports && exports[key] === _mapTheme[key]) return;
|
|
121
121
|
Object.defineProperty(exports, key, {
|
|
122
122
|
enumerable: true,
|
|
123
123
|
get: function get() {
|
|
124
|
-
return
|
|
124
|
+
return _mapTheme[key];
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
});
|
|
@@ -140,44 +140,44 @@ Object.keys(_mouseLocation).forEach(function (key) {
|
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
|
|
143
|
-
var
|
|
143
|
+
var _scale = require("./control/scale");
|
|
144
144
|
|
|
145
|
-
Object.keys(
|
|
145
|
+
Object.keys(_scale).forEach(function (key) {
|
|
146
146
|
if (key === "default" || key === "__esModule") return;
|
|
147
147
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
148
|
-
if (key in exports && exports[key] ===
|
|
148
|
+
if (key in exports && exports[key] === _scale[key]) return;
|
|
149
149
|
Object.defineProperty(exports, key, {
|
|
150
150
|
enumerable: true,
|
|
151
151
|
get: function get() {
|
|
152
|
-
return
|
|
152
|
+
return _scale[key];
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
});
|
|
156
156
|
|
|
157
|
-
var
|
|
157
|
+
var _zoom = require("./control/zoom");
|
|
158
158
|
|
|
159
|
-
Object.keys(
|
|
159
|
+
Object.keys(_zoom).forEach(function (key) {
|
|
160
160
|
if (key === "default" || key === "__esModule") return;
|
|
161
161
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
162
|
-
if (key in exports && exports[key] ===
|
|
162
|
+
if (key in exports && exports[key] === _zoom[key]) return;
|
|
163
163
|
Object.defineProperty(exports, key, {
|
|
164
164
|
enumerable: true,
|
|
165
165
|
get: function get() {
|
|
166
|
-
return
|
|
166
|
+
return _zoom[key];
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
});
|
|
170
170
|
|
|
171
|
-
var
|
|
171
|
+
var _interface = require("./interface");
|
|
172
172
|
|
|
173
|
-
Object.keys(
|
|
173
|
+
Object.keys(_interface).forEach(function (key) {
|
|
174
174
|
if (key === "default" || key === "__esModule") return;
|
|
175
175
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
176
|
-
if (key in exports && exports[key] ===
|
|
176
|
+
if (key in exports && exports[key] === _interface[key]) return;
|
|
177
177
|
Object.defineProperty(exports, key, {
|
|
178
178
|
enumerable: true,
|
|
179
179
|
get: function get() {
|
|
180
|
-
return
|
|
180
|
+
return _interface[key];
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
});
|
|
@@ -196,16 +196,16 @@ Object.keys(_layerPopup).forEach(function (key) {
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
|
|
199
|
-
var
|
|
199
|
+
var _popup = require("./popup/popup");
|
|
200
200
|
|
|
201
|
-
Object.keys(
|
|
201
|
+
Object.keys(_popup).forEach(function (key) {
|
|
202
202
|
if (key === "default" || key === "__esModule") return;
|
|
203
203
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
204
|
-
if (key in exports && exports[key] ===
|
|
204
|
+
if (key in exports && exports[key] === _popup[key]) return;
|
|
205
205
|
Object.defineProperty(exports, key, {
|
|
206
206
|
enumerable: true,
|
|
207
207
|
get: function get() {
|
|
208
|
-
return
|
|
208
|
+
return _popup[key];
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
211
|
});
|
package/lib/marker-layer.js
CHANGED
|
@@ -104,7 +104,10 @@ var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
|
|
|
104
104
|
}, {
|
|
105
105
|
key: "setContainerSize",
|
|
106
106
|
value: function setContainerSize() {
|
|
107
|
-
if (!this.mapsService)
|
|
107
|
+
if (!this.mapsService) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
|
|
108
111
|
var container = this.mapsService.getContainer();
|
|
109
112
|
this.containerSize = {
|
|
110
113
|
containerWidth: (container === null || container === void 0 ? void 0 : container.scrollWidth) || 0,
|
|
@@ -348,9 +351,15 @@ var MarkerLayer = /*#__PURE__*/function (_EventEmitter) {
|
|
|
348
351
|
}, {
|
|
349
352
|
key: "update",
|
|
350
353
|
value: function update() {
|
|
351
|
-
if (!this.mapsService)
|
|
354
|
+
if (!this.mapsService) {
|
|
355
|
+
return;
|
|
356
|
+
} // 当图层中无marker时,无需更新
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
if (this.markers.length === 0) {
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
352
362
|
|
|
353
|
-
if (this.markers.length === 0) return;
|
|
354
363
|
var zoom = this.mapsService.getZoom();
|
|
355
364
|
var bbox = this.mapsService.getBounds();
|
|
356
365
|
|
package/lib/marker.js
CHANGED
|
@@ -62,7 +62,8 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
|
|
|
62
62
|
|
|
63
63
|
(0, _createClass2.default)(Marker, [{
|
|
64
64
|
key: "getMarkerLayerContainerSize",
|
|
65
|
-
value:
|
|
65
|
+
value: // tslint:disable-next-line: no-empty
|
|
66
|
+
function getMarkerLayerContainerSize() {}
|
|
66
67
|
}, {
|
|
67
68
|
key: "getDefault",
|
|
68
69
|
value: function getDefault() {
|
|
@@ -333,7 +334,10 @@ var Marker = /*#__PURE__*/function (_EventEmitter) {
|
|
|
333
334
|
containerWidth = _ref.containerWidth,
|
|
334
335
|
bounds = _ref.bounds;
|
|
335
336
|
|
|
336
|
-
if (!bounds)
|
|
337
|
+
if (!bounds) {
|
|
338
|
+
return;
|
|
339
|
+
} // 当前可视区域包含跨日界线
|
|
340
|
+
|
|
337
341
|
|
|
338
342
|
if (Math.abs(bounds[0][0]) > 180 || Math.abs(bounds[1][0]) > 180) {
|
|
339
343
|
if (pos.x > containerWidth) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-component",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.7",
|
|
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.13.
|
|
30
|
-
"@antv/l7-utils": "2.13.
|
|
29
|
+
"@antv/l7-core": "2.13.7",
|
|
30
|
+
"@antv/l7-utils": "2.13.7",
|
|
31
31
|
"@babel/runtime": "^7.7.7",
|
|
32
32
|
"eventemitter3": "^4.0.0",
|
|
33
33
|
"inversify": "^5.0.1",
|
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
"supercluster": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@antv/l7-
|
|
39
|
+
"@antv/l7-layers": "2.13.7",
|
|
40
|
+
"@antv/l7-test-utils": "2.13.7",
|
|
40
41
|
"gcoord": "^0.3.2",
|
|
41
42
|
"less": "^4.1.3"
|
|
42
43
|
},
|
|
43
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "322cff4a31491437a1409ec3f7d3a313ba8a3a2c",
|
|
44
45
|
"publishConfig": {
|
|
45
46
|
"access": "public"
|
|
46
47
|
}
|