@antv/l7-component 2.17.3 → 2.17.5

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.
@@ -1,4 +1,4 @@
1
- export * from './buttonControl';
2
- export * from './control';
3
- export * from './popperControl';
4
- export * from './selectControl';
1
+ export { ButtonControl, type IButtonControlOption } from './buttonControl';
2
+ export { Control, PositionType, type IControlOption } from './control';
3
+ export { PopperControl, type IPopperControlOption } from './popperControl';
4
+ export { SelectControl, type ControlOptionItem, type ISelectControlOption, } from './selectControl';
@@ -1,4 +1,4 @@
1
- export * from "./buttonControl";
2
- export * from "./control";
3
- export * from "./popperControl";
4
- export * from "./selectControl";
1
+ export { ButtonControl } from "./buttonControl";
2
+ export { Control, PositionType } from "./control";
3
+ export { PopperControl } from "./popperControl";
4
+ export { SelectControl } from "./selectControl";
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/exportImage';
7
- export * from './control/fullscreen';
8
- export * from './control/geoLocate';
9
- export * from './control/layerSwitch';
10
- export * from './control/logo';
11
- export * from './control/mapTheme';
12
- export * from './control/mouseLocation';
13
- export * from './control/scale';
14
- export * from './control/zoom';
6
+ export { ExportImage, type IExportImageControlOption, } from './control/exportImage';
7
+ export { Fullscreen, type IFullscreenControlOption, } from './control/fullscreen';
8
+ export { GeoLocate, type IGeoLocateOption } from './control/geoLocate';
9
+ export { LayerSwitch, type ILayerSwitchOption } from './control/layerSwitch';
10
+ export { Logo, type ILogoControlOption } from './control/logo';
11
+ export { MapTheme } from './control/mapTheme';
12
+ export { MouseLocation, type IMouseLocationControlOption, } from './control/mouseLocation';
13
+ export { Scale, type IScaleControlOption } from './control/scale';
14
+ export { Zoom, type IZoomControlOption } from './control/zoom';
15
15
  export * from './interface';
16
- export * from './popup/layerPopup';
17
- export * from './popup/popup';
16
+ export { LayerPopup, type ILayerPopupOption, type LayerField, type LayerPopupConfigItem, } from './popup/layerPopup';
17
+ export { Popup } from './popup/popup';
18
18
  export { Marker, MarkerLayer };
package/es/index.js CHANGED
@@ -34,16 +34,16 @@ function loadStyles(css, doc) {
34
34
  }
35
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");
36
36
  export * from "./control/baseControl";
37
- export * from "./control/exportImage";
38
- export * from "./control/fullscreen";
39
- export * from "./control/geoLocate";
40
- export * from "./control/layerSwitch";
41
- export * from "./control/logo";
42
- export * from "./control/mapTheme";
43
- export * from "./control/mouseLocation";
44
- export * from "./control/scale";
45
- export * from "./control/zoom";
37
+ export { ExportImage } from "./control/exportImage";
38
+ export { Fullscreen } from "./control/fullscreen";
39
+ export { GeoLocate } from "./control/geoLocate";
40
+ export { LayerSwitch } from "./control/layerSwitch";
41
+ export { Logo } from "./control/logo";
42
+ export { MapTheme } from "./control/mapTheme";
43
+ export { MouseLocation } from "./control/mouseLocation";
44
+ export { Scale } from "./control/scale";
45
+ export { Zoom } from "./control/zoom";
46
46
  export * from "./interface";
47
- export * from "./popup/layerPopup";
48
- export * from "./popup/popup";
47
+ export { LayerPopup } from "./popup/layerPopup";
48
+ export { Popup } from "./popup/popup";
49
49
  export { Marker, MarkerLayer };
@@ -3,47 +3,37 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _buttonControl = require("./buttonControl");
7
- Object.keys(_buttonControl).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _buttonControl[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _buttonControl[key];
14
- }
15
- });
6
+ Object.defineProperty(exports, "ButtonControl", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _buttonControl.ButtonControl;
10
+ }
16
11
  });
17
- var _control = require("./control");
18
- Object.keys(_control).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _control[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _control[key];
25
- }
26
- });
12
+ Object.defineProperty(exports, "Control", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _control.Control;
16
+ }
27
17
  });
28
- var _popperControl = require("./popperControl");
29
- Object.keys(_popperControl).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _popperControl[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _popperControl[key];
36
- }
37
- });
18
+ Object.defineProperty(exports, "PopperControl", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _popperControl.PopperControl;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "PositionType", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _control.PositionType;
28
+ }
38
29
  });
39
- var _selectControl = require("./selectControl");
40
- Object.keys(_selectControl).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _selectControl[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function get() {
46
- return _selectControl[key];
47
- }
48
- });
49
- });
30
+ Object.defineProperty(exports, "SelectControl", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _selectControl.SelectControl;
34
+ }
35
+ });
36
+ var _buttonControl = require("./buttonControl");
37
+ var _control = require("./control");
38
+ var _popperControl = require("./popperControl");
39
+ var _selectControl = require("./selectControl");
package/lib/index.js CHANGED
@@ -6,8 +6,61 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  var _exportNames = {
8
8
  Marker: true,
9
- MarkerLayer: true
9
+ MarkerLayer: true,
10
+ ExportImage: true,
11
+ Fullscreen: true,
12
+ GeoLocate: true,
13
+ LayerSwitch: true,
14
+ Logo: true,
15
+ MapTheme: true,
16
+ MouseLocation: true,
17
+ Scale: true,
18
+ Zoom: true,
19
+ LayerPopup: true,
20
+ Popup: true
10
21
  };
22
+ Object.defineProperty(exports, "ExportImage", {
23
+ enumerable: true,
24
+ get: function get() {
25
+ return _exportImage.ExportImage;
26
+ }
27
+ });
28
+ Object.defineProperty(exports, "Fullscreen", {
29
+ enumerable: true,
30
+ get: function get() {
31
+ return _fullscreen.Fullscreen;
32
+ }
33
+ });
34
+ Object.defineProperty(exports, "GeoLocate", {
35
+ enumerable: true,
36
+ get: function get() {
37
+ return _geoLocate.GeoLocate;
38
+ }
39
+ });
40
+ Object.defineProperty(exports, "LayerPopup", {
41
+ enumerable: true,
42
+ get: function get() {
43
+ return _layerPopup.LayerPopup;
44
+ }
45
+ });
46
+ Object.defineProperty(exports, "LayerSwitch", {
47
+ enumerable: true,
48
+ get: function get() {
49
+ return _layerSwitch.LayerSwitch;
50
+ }
51
+ });
52
+ Object.defineProperty(exports, "Logo", {
53
+ enumerable: true,
54
+ get: function get() {
55
+ return _logo.Logo;
56
+ }
57
+ });
58
+ Object.defineProperty(exports, "MapTheme", {
59
+ enumerable: true,
60
+ get: function get() {
61
+ return _mapTheme.MapTheme;
62
+ }
63
+ });
11
64
  Object.defineProperty(exports, "Marker", {
12
65
  enumerable: true,
13
66
  get: function get() {
@@ -20,6 +73,30 @@ Object.defineProperty(exports, "MarkerLayer", {
20
73
  return _markerLayer.default;
21
74
  }
22
75
  });
76
+ Object.defineProperty(exports, "MouseLocation", {
77
+ enumerable: true,
78
+ get: function get() {
79
+ return _mouseLocation.MouseLocation;
80
+ }
81
+ });
82
+ Object.defineProperty(exports, "Popup", {
83
+ enumerable: true,
84
+ get: function get() {
85
+ return _popup.Popup;
86
+ }
87
+ });
88
+ Object.defineProperty(exports, "Scale", {
89
+ enumerable: true,
90
+ get: function get() {
91
+ return _scale.Scale;
92
+ }
93
+ });
94
+ Object.defineProperty(exports, "Zoom", {
95
+ enumerable: true,
96
+ get: function get() {
97
+ return _zoom.Zoom;
98
+ }
99
+ });
23
100
  var _marker = _interopRequireDefault(require("./marker"));
24
101
  var _markerLayer = _interopRequireDefault(require("./marker-layer"));
25
102
  require("./assets/iconfont/iconfont.js");
@@ -36,113 +113,14 @@ Object.keys(_baseControl).forEach(function (key) {
36
113
  });
37
114
  });
38
115
  var _exportImage = require("./control/exportImage");
39
- Object.keys(_exportImage).forEach(function (key) {
40
- if (key === "default" || key === "__esModule") return;
41
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
42
- if (key in exports && exports[key] === _exportImage[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function get() {
46
- return _exportImage[key];
47
- }
48
- });
49
- });
50
116
  var _fullscreen = require("./control/fullscreen");
51
- Object.keys(_fullscreen).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
54
- if (key in exports && exports[key] === _fullscreen[key]) return;
55
- Object.defineProperty(exports, key, {
56
- enumerable: true,
57
- get: function get() {
58
- return _fullscreen[key];
59
- }
60
- });
61
- });
62
117
  var _geoLocate = require("./control/geoLocate");
63
- Object.keys(_geoLocate).forEach(function (key) {
64
- if (key === "default" || key === "__esModule") return;
65
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
66
- if (key in exports && exports[key] === _geoLocate[key]) return;
67
- Object.defineProperty(exports, key, {
68
- enumerable: true,
69
- get: function get() {
70
- return _geoLocate[key];
71
- }
72
- });
73
- });
74
118
  var _layerSwitch = require("./control/layerSwitch");
75
- Object.keys(_layerSwitch).forEach(function (key) {
76
- if (key === "default" || key === "__esModule") return;
77
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
78
- if (key in exports && exports[key] === _layerSwitch[key]) return;
79
- Object.defineProperty(exports, key, {
80
- enumerable: true,
81
- get: function get() {
82
- return _layerSwitch[key];
83
- }
84
- });
85
- });
86
119
  var _logo = require("./control/logo");
87
- Object.keys(_logo).forEach(function (key) {
88
- if (key === "default" || key === "__esModule") return;
89
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
90
- if (key in exports && exports[key] === _logo[key]) return;
91
- Object.defineProperty(exports, key, {
92
- enumerable: true,
93
- get: function get() {
94
- return _logo[key];
95
- }
96
- });
97
- });
98
120
  var _mapTheme = require("./control/mapTheme");
99
- Object.keys(_mapTheme).forEach(function (key) {
100
- if (key === "default" || key === "__esModule") return;
101
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
102
- if (key in exports && exports[key] === _mapTheme[key]) return;
103
- Object.defineProperty(exports, key, {
104
- enumerable: true,
105
- get: function get() {
106
- return _mapTheme[key];
107
- }
108
- });
109
- });
110
121
  var _mouseLocation = require("./control/mouseLocation");
111
- Object.keys(_mouseLocation).forEach(function (key) {
112
- if (key === "default" || key === "__esModule") return;
113
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
114
- if (key in exports && exports[key] === _mouseLocation[key]) return;
115
- Object.defineProperty(exports, key, {
116
- enumerable: true,
117
- get: function get() {
118
- return _mouseLocation[key];
119
- }
120
- });
121
- });
122
122
  var _scale = require("./control/scale");
123
- Object.keys(_scale).forEach(function (key) {
124
- if (key === "default" || key === "__esModule") return;
125
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
126
- if (key in exports && exports[key] === _scale[key]) return;
127
- Object.defineProperty(exports, key, {
128
- enumerable: true,
129
- get: function get() {
130
- return _scale[key];
131
- }
132
- });
133
- });
134
123
  var _zoom = require("./control/zoom");
135
- Object.keys(_zoom).forEach(function (key) {
136
- if (key === "default" || key === "__esModule") return;
137
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
138
- if (key in exports && exports[key] === _zoom[key]) return;
139
- Object.defineProperty(exports, key, {
140
- enumerable: true,
141
- get: function get() {
142
- return _zoom[key];
143
- }
144
- });
145
- });
146
124
  var _interface = require("./interface");
147
125
  Object.keys(_interface).forEach(function (key) {
148
126
  if (key === "default" || key === "__esModule") return;
@@ -156,29 +134,7 @@ Object.keys(_interface).forEach(function (key) {
156
134
  });
157
135
  });
158
136
  var _layerPopup = require("./popup/layerPopup");
159
- Object.keys(_layerPopup).forEach(function (key) {
160
- if (key === "default" || key === "__esModule") return;
161
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
162
- if (key in exports && exports[key] === _layerPopup[key]) return;
163
- Object.defineProperty(exports, key, {
164
- enumerable: true,
165
- get: function get() {
166
- return _layerPopup[key];
167
- }
168
- });
169
- });
170
137
  var _popup = require("./popup/popup");
171
- Object.keys(_popup).forEach(function (key) {
172
- if (key === "default" || key === "__esModule") return;
173
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
174
- if (key in exports && exports[key] === _popup[key]) return;
175
- Object.defineProperty(exports, key, {
176
- enumerable: true,
177
- get: function get() {
178
- return _popup[key];
179
- }
180
- });
181
- });
182
138
  // 引入样式
183
139
  function loadStyles(css, doc) {
184
140
  var isMiniAli = typeof my !== 'undefined' && !!my && typeof my.showToast === 'function' && my.isFRM !== true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-component",
3
- "version": "2.17.3",
3
+ "version": "2.17.5",
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.3",
30
- "@antv/l7-utils": "2.17.3",
29
+ "@antv/l7-core": "2.17.5",
30
+ "@antv/l7-utils": "2.17.5",
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.3",
40
- "@antv/l7-test-utils": "2.17.3",
39
+ "@antv/l7-layers": "2.17.5",
40
+ "@antv/l7-test-utils": "2.17.5",
41
41
  "gcoord": "^0.3.2",
42
42
  "less": "^4.1.3"
43
43
  },
44
- "gitHead": "740ab519d12bb71130b430a5925914611c3ada18",
44
+ "gitHead": "9da38170fe5ac1bec6a92b5e75f23ecf573c6d9c",
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  }