@antv/l7-component 2.21.0 → 2.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/es/assets/iconfont/iconfont.js +6 -6
  2. package/es/constants/index.js +2 -2
  3. package/es/control/baseControl/buttonControl.js +109 -144
  4. package/es/control/baseControl/control.js +212 -258
  5. package/es/control/baseControl/popperControl.js +67 -95
  6. package/es/control/baseControl/selectControl.js +132 -178
  7. package/es/control/exportImage.js +59 -142
  8. package/es/control/fullscreen.js +69 -100
  9. package/es/control/geoLocate.js +37 -84
  10. package/es/control/layerSwitch.js +111 -154
  11. package/es/control/logo.js +43 -69
  12. package/es/control/mapTheme.js +57 -98
  13. package/es/control/mouseLocation.js +37 -69
  14. package/es/control/scale.js +107 -135
  15. package/es/control/swipe.js +297 -393
  16. package/es/control/zoom.js +80 -112
  17. package/es/css/index.css +10 -7
  18. package/es/index.js +667 -1
  19. package/es/marker-layer.js +274 -326
  20. package/es/marker.d.ts +0 -2
  21. package/es/marker.js +394 -453
  22. package/es/popup/layerPopup.js +277 -321
  23. package/es/popup/popup.js +422 -482
  24. package/es/utils/anchor.js +6 -6
  25. package/es/utils/icon.js +4 -4
  26. package/es/utils/popper.js +180 -196
  27. package/es/utils/screenfull.js +29 -51
  28. package/lib/assets/iconfont/iconfont.js +6 -6
  29. package/lib/constants/index.d.ts +60 -0
  30. package/lib/constants/index.js +2 -2
  31. package/lib/control/baseControl/buttonControl.d.ts +60 -0
  32. package/lib/control/baseControl/buttonControl.js +110 -143
  33. package/lib/control/baseControl/control.d.ts +112 -0
  34. package/lib/control/baseControl/control.js +213 -257
  35. package/lib/control/baseControl/index.d.ts +4 -0
  36. package/lib/control/baseControl/index.js +5 -5
  37. package/lib/control/baseControl/popperControl.d.ts +28 -0
  38. package/lib/control/baseControl/popperControl.js +68 -94
  39. package/lib/control/baseControl/selectControl.d.ts +53 -0
  40. package/lib/control/baseControl/selectControl.js +133 -177
  41. package/lib/control/exportImage.d.ts +19 -0
  42. package/lib/control/exportImage.js +60 -141
  43. package/lib/control/fullscreen.d.ts +20 -0
  44. package/lib/control/fullscreen.js +70 -99
  45. package/lib/control/geoLocate.d.ts +17 -0
  46. package/lib/control/geoLocate.js +38 -83
  47. package/lib/control/layerSwitch.d.ts +27 -0
  48. package/lib/control/layerSwitch.js +112 -153
  49. package/lib/control/logo.d.ts +14 -0
  50. package/lib/control/logo.js +44 -69
  51. package/lib/control/mapTheme.d.ts +11 -0
  52. package/lib/control/mapTheme.js +58 -97
  53. package/lib/control/mouseLocation.d.ts +16 -0
  54. package/lib/control/mouseLocation.js +38 -68
  55. package/lib/control/scale.d.ts +35 -0
  56. package/lib/control/scale.js +108 -134
  57. package/lib/control/swipe.d.ts +66 -0
  58. package/lib/control/swipe.js +298 -392
  59. package/lib/control/zoom.d.ts +39 -0
  60. package/lib/control/zoom.js +81 -111
  61. package/lib/css/index.css +10 -7
  62. package/lib/index.d.ts +19 -0
  63. package/lib/index.js +683 -17
  64. package/lib/interface.d.ts +18 -0
  65. package/lib/marker-layer.d.ts +55 -0
  66. package/lib/marker-layer.js +276 -324
  67. package/lib/marker.d.ts +58 -0
  68. package/lib/marker.js +395 -452
  69. package/lib/popup/layerPopup.d.ts +99 -0
  70. package/lib/popup/layerPopup.js +278 -320
  71. package/lib/popup/popup.d.ts +142 -0
  72. package/lib/popup/popup.js +423 -481
  73. package/lib/utils/anchor.d.ts +22 -0
  74. package/lib/utils/anchor.js +6 -6
  75. package/lib/utils/icon.d.ts +1 -0
  76. package/lib/utils/icon.js +6 -5
  77. package/lib/utils/popper.d.ts +76 -0
  78. package/lib/utils/popper.js +184 -196
  79. package/lib/utils/screenfull.d.ts +2 -0
  80. package/lib/utils/screenfull.js +29 -52
  81. package/package.json +16 -20
  82. package/CHANGELOG.md +0 -325
  83. package/LICENSE.md +0 -21
package/es/index.js CHANGED
@@ -32,7 +32,673 @@ function loadStyles(css, doc) {
32
32
  head.appendChild(style);
33
33
  return style;
34
34
  }
35
- loadStyles(".l7-marker-container {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.l7-marker {\n position: absolute !important;\n top: 0;\n left: 0;\n z-index: 5;\n cursor: pointer;\n}\n.l7-marker-cluster {\n width: 40px;\n height: 40px;\n background-color: rgba(181, 226, 140, 0.6);\n background-clip: padding-box;\n border-radius: 20px;\n}\n.l7-marker-cluster div {\n width: 30px;\n height: 30px;\n margin-top: 5px;\n margin-left: 5px;\n font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif;\n text-align: center;\n background-color: rgba(110, 204, 57, 0.6);\n border-radius: 15px;\n}\n.l7-marker-cluster span {\n line-height: 30px;\n}\n.l7-touch .l7-control-attribution,\n.l7-touch .l7-control-layers,\n.l7-touch .l7-bar {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.l7-touch .l7-control-layers,\n.l7-touch .l7-bar {\n background-clip: padding-box;\n border: 2px solid rgba(0, 0, 0, 0.2);\n}\n.mapboxgl-ctrl-logo,\n.amap-logo {\n display: none !important;\n}\n.l7-select-box {\n border: 3px dashed gray;\n border-radius: 2px;\n position: absolute;\n z-index: 999;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.l7-control-container {\n font: 12px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif;\n}\n.l7-control-container .l7-control {\n position: relative;\n z-index: 999;\n float: left;\n clear: both;\n color: #595959;\n font-size: 12px;\n pointer-events: visiblePainted;\n /* IE 9-10 doesn't have auto */\n pointer-events: auto;\n}\n.l7-control-container .l7-control.l7-control--hide {\n display: none;\n}\n.l7-control-container .l7-top {\n top: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 999;\n pointer-events: none;\n}\n.l7-control-container .l7-top .l7-control:not(.l7-control--hide) {\n margin-top: 8px;\n}\n.l7-control-container .l7-right {\n right: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 999;\n pointer-events: none;\n}\n.l7-control-container .l7-right .l7-control:not(.l7-control--hide) {\n margin-right: 8px;\n}\n.l7-control-container .l7-bottom {\n bottom: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 999;\n pointer-events: none;\n}\n.l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) {\n margin-bottom: 8px;\n}\n.l7-control-container .l7-left {\n left: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n z-index: 999;\n pointer-events: none;\n}\n.l7-control-container .l7-left .l7-control:not(.l7-control--hide) {\n margin-left: 8px;\n}\n.l7-control-container .l7-center {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.l7-control-container .l7-center.l7-top,\n.l7-control-container .l7-center.l7-bottom {\n width: 100%;\n}\n.l7-control-container .l7-center.l7-left,\n.l7-control-container .l7-center.l7-right {\n height: 100%;\n}\n.l7-control-container .l7-center .l7-control {\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.l7-control-container .l7-row {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.l7-control-container .l7-row.l7-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.l7-control-container .l7-row.l7-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-control-container .l7-column {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-control-container .l7-column.l7-left {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.l7-control-container .l7-column.l7-right {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-button-control {\n min-width: 28px;\n height: 28px;\n background-color: #fff;\n border-width: 0;\n border-radius: 2px;\n outline: 0;\n cursor: pointer;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 0 6px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n line-height: 16px;\n}\n.l7-button-control .l7-iconfont {\n fill: #595959;\n color: #595959;\n width: 16px;\n height: 16px;\n}\n.l7-button-control.l7-button-control--row {\n padding: 0 16px 0 13px;\n}\n.l7-button-control.l7-button-control--row * + .l7-button-control__text {\n margin-left: 8px;\n}\n.l7-button-control.l7-button-control--column {\n height: 44px;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-button-control.l7-button-control--column .l7-iconfont {\n margin-top: 3px;\n}\n.l7-button-control.l7-button-control--column .l7-button-control__text {\n margin-top: 3px;\n font-size: 10px;\n -webkit-transform: scale(0.83333);\n transform: scale(0.83333);\n}\n.l7-button-control:not(:disabled):hover {\n background-color: #f3f3f3;\n}\n.l7-button-control:not(:disabled):active {\n background-color: #f3f3f3;\n}\n.l7-button-control:disabled {\n background-color: #fafafa;\n color: #bdbdbd;\n cursor: not-allowed;\n}\n.l7-button-control:disabled .l7-iconfont {\n fill: #bdbdbd;\n color: #bdbdbd;\n}\n.l7-button-control:disabled:hover {\n background-color: #fafafa;\n}\n.l7-button-control:disabled:active {\n background-color: #fafafa;\n}\n.l7-popper {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n z-index: 5;\n color: #595959;\n}\n.l7-popper.l7-popper-hide {\n display: none;\n}\n.l7-popper .l7-popper-content {\n min-height: 28px;\n background: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n}\n.l7-popper .l7-popper-arrow {\n width: 0;\n height: 0;\n border-width: 4px;\n border-style: solid;\n border-top-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n border-right-color: transparent;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n}\n.l7-popper.l7-popper-left {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.l7-popper.l7-popper-left .l7-popper-arrow {\n border-left-color: #fff;\n margin: 10px 0;\n}\n.l7-popper.l7-popper-right {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.l7-popper.l7-popper-right .l7-popper-arrow {\n border-right-color: #fff;\n margin: 10px 0;\n}\n.l7-popper.l7-popper-top {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-popper.l7-popper-top .l7-popper-arrow {\n border-top-color: #fff;\n margin: 0 10px;\n}\n.l7-popper.l7-popper-bottom {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.l7-popper.l7-popper-bottom .l7-popper-arrow {\n border-bottom-color: #fff;\n margin: 0 10px;\n}\n.l7-popper.l7-popper-start {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.l7-popper.l7-popper-end {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-select-control--normal {\n padding: 4px 0;\n}\n.l7-select-control--normal .l7-select-control-item {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n height: 24px;\n padding: 0 16px;\n font-size: 12px;\n line-height: 24px;\n}\n.l7-select-control--normal .l7-select-control-item > * + * {\n margin-left: 6px;\n}\n.l7-select-control--normal .l7-select-control-item input[type='checkbox'] {\n width: 14px;\n height: 14px;\n}\n.l7-select-control--normal .l7-select-control-item:hover {\n background-color: #f3f3f3;\n}\n.l7-select-control--image {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n max-width: 460px;\n max-height: 400px;\n margin: 12px 0 0 12px;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.l7-select-control--image .l7-select-control-item {\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);\n flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n margin-right: 12px;\n margin-bottom: 12px;\n overflow: hidden;\n font-size: 12px;\n border: 1px solid #fff;\n border-radius: 2px;\n}\n.l7-select-control--image .l7-select-control-item img {\n width: 100%;\n height: 80px;\n}\n.l7-select-control--image .l7-select-control-item input[type='checkbox'] {\n position: absolute;\n top: 0;\n right: 0;\n}\n.l7-select-control--image .l7-select-control-item input[type='radio'] {\n position: absolute;\n top: 0;\n right: 0;\n}\n.l7-select-control--image .l7-select-control-item .l7-select-control-item-row {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n line-height: 26px;\n}\n.l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {\n margin-left: 8px;\n}\n.l7-select-control--image .l7-select-control-item.l7-select-control-item-active {\n border-color: #0370fe;\n}\n.l7-select-control-item {\n cursor: pointer;\n}\n.l7-select-control-item input[type='checkbox'] {\n margin: 0;\n cursor: pointer;\n}\n.l7-select-control--multiple .l7-select-control-item:hover {\n background-color: transparent;\n}\n.l7-control-logo {\n width: 89px;\n height: 16px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.l7-control-logo img {\n height: 100%;\n width: 100%;\n}\n.l7-control-logo .l7-control-logo-link {\n display: block;\n cursor: pointer;\n}\n.l7-control-logo .l7-control-logo-link img {\n cursor: pointer;\n}\n.l7-control-mouse-location {\n background-color: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n padding: 2px 4px;\n min-width: 130px;\n}\n.l7-control-zoom {\n overflow: hidden;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n}\n.l7-control-zoom .l7-button-control {\n font-size: 16px;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 0;\n -webkit-box-shadow: 0 0 0;\n box-shadow: 0 0 0;\n}\n.l7-control-zoom .l7-button-control .l7-iconfont {\n width: 14px;\n height: 14px;\n}\n.l7-control-zoom .l7-button-control:last-child {\n border-bottom: 0;\n}\n.l7-control-zoom .l7-control-zoom__number {\n color: #595959;\n padding: 0;\n}\n.l7-control-zoom .l7-control-zoom__number:hover {\n background-color: #fff;\n}\n.l7-control-scale {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-control-scale .l7-control-scale-line {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding: 2px 5px 1px;\n overflow: hidden;\n color: #595959;\n font-size: 10px;\n line-height: 1.1;\n white-space: nowrap;\n background: #fff;\n border: 2px solid #000;\n border-top: 0;\n -webkit-transition: width 0.1s;\n transition: width 0.1s;\n}\n.l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {\n margin-top: -2px;\n border-top: 2px solid #777;\n border-bottom: none;\n}\n.l7-right .l7-control-scale {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-right .l7-control-scale .l7-control-scale-line {\n text-align: right;\n}\n.l7-popup {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 5;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n will-change: transform;\n pointer-events: none;\n}\n.l7-popup.l7-popup-hide {\n display: none;\n}\n.l7-popup .l7-popup-content {\n position: relative;\n padding: 16px;\n font-size: 14px;\n background: #fff;\n border-radius: 3px;\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n}\n.l7-popup .l7-popup-content .l7-popup-content__title {\n margin-bottom: 8px;\n font-weight: bold;\n}\n.l7-popup .l7-popup-content .l7-popup-close-button,\n.l7-popup .l7-popup-content .l7-popup-content__title,\n.l7-popup .l7-popup-content .l7-popup-content__panel {\n white-space: normal;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n pointer-events: initial;\n}\n.l7-popup .l7-popup-content .l7-popup-close-button {\n position: absolute;\n top: 0;\n right: 0;\n width: 18px;\n height: 18px;\n padding: 0;\n font-size: 14px;\n line-height: 18px;\n text-align: center;\n background-color: transparent;\n border: 0;\n border-radius: 0 3px 0 0;\n cursor: pointer;\n}\n.l7-popup .l7-popup-tip {\n position: relative;\n z-index: 1;\n width: 0;\n height: 0;\n border: 10px solid transparent;\n}\n.l7-popup.l7-popup-anchor-bottom,\n.l7-popup.l7-popup-anchor-bottom-left,\n.l7-popup.l7-popup-anchor-bottom-right {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.l7-popup.l7-popup-anchor-bottom .l7-popup-tip,\n.l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,\n.l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {\n bottom: 1px;\n}\n.l7-popup.l7-popup-anchor-top,\n.l7-popup.l7-popup-anchor-top-left,\n.l7-popup.l7-popup-anchor-top-right {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-popup.l7-popup-anchor-top .l7-popup-tip,\n.l7-popup.l7-popup-anchor-top-left .l7-popup-tip,\n.l7-popup.l7-popup-anchor-top-right .l7-popup-tip {\n top: 1px;\n}\n.l7-popup.l7-popup-anchor-left {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.l7-popup.l7-popup-anchor-right {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.l7-popup-anchor-top .l7-popup-tip {\n position: relative;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-top: none;\n border-bottom-color: #fff;\n}\n.l7-popup-anchor-top-left .l7-popup-tip {\n -webkit-align-self: flex-start;\n -ms-flex-item-align: start;\n align-self: flex-start;\n border-top: none;\n border-bottom-color: #fff;\n border-left: none;\n}\n.l7-popup-anchor-top-right .l7-popup-tip {\n -webkit-align-self: flex-end;\n -ms-flex-item-align: end;\n align-self: flex-end;\n border-top: none;\n border-right: none;\n border-bottom-color: #fff;\n}\n.l7-popup-anchor-bottom .l7-popup-tip {\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-top-color: #fff;\n border-bottom: none;\n}\n.l7-popup-anchor-bottom-left .l7-popup-tip {\n -webkit-align-self: flex-start;\n -ms-flex-item-align: start;\n align-self: flex-start;\n border-top-color: #fff;\n border-bottom: none;\n border-left: none;\n}\n.l7-popup-anchor-bottom-right .l7-popup-tip {\n -webkit-align-self: flex-end;\n -ms-flex-item-align: end;\n align-self: flex-end;\n border-top-color: #fff;\n border-right: none;\n border-bottom: none;\n}\n.l7-popup-anchor-left .l7-popup-tip {\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-right-color: #fff;\n border-left: none;\n}\n.l7-popup-anchor-right .l7-popup-tip {\n right: 1px;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-right: none;\n border-left-color: #fff;\n}\n.l7-popup-anchor-top-left .l7-popup-content {\n border-top-left-radius: 0;\n}\n.l7-popup-anchor-top-right .l7-popup-content {\n border-top-right-radius: 0;\n}\n.l7-popup-anchor-bottom-left .l7-popup-content {\n border-bottom-left-radius: 0;\n}\n.l7-popup-anchor-bottom-right .l7-popup-content {\n border-bottom-right-radius: 0;\n}\n.l7-popup-track-pointer {\n display: none;\n}\n.l7-popup-track-pointer * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n}\n.l7-map:hover .l7-popup-track-pointer {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.l7-map:active .l7-popup-track-pointer {\n display: none;\n}\n.l7-layer-popup__row {\n font-size: 12px;\n}\n.l7-layer-popup__row + .l7-layer-popup__row {\n margin-top: 4px;\n}\n.l7-control-swipe {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 6;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -ms-touch-action: none;\n touch-action: none;\n}\n.l7-control-swipe_hide {\n display: none;\n}\n.l7-control-swipe:before {\n position: absolute;\n top: -5000px;\n bottom: -5000px;\n left: 50%;\n z-index: -1;\n width: 4px;\n background: #fff;\n -webkit-transform: translate(-2px, 0);\n transform: translate(-2px, 0);\n content: '';\n}\n.l7-control-swipe.horizontal:before {\n top: 50%;\n right: -5000px;\n bottom: auto;\n left: -5000px;\n width: auto;\n height: 4px;\n}\n.l7-control-swipe__button {\n display: block;\n width: 28px;\n height: 28px;\n margin: 0;\n padding: 0;\n color: #595959;\n font-weight: bold;\n font-size: inherit;\n text-align: center;\n text-decoration: none;\n background-color: #fff;\n border: none;\n border-radius: 2px;\n outline: none;\n}\n.l7-control-swipe,\n.l7-control-swipe__button {\n cursor: ew-resize;\n}\n.l7-control-swipe.horizontal,\n.l7-control-swipe.horizontal button {\n cursor: ns-resize;\n}\n.l7-control-swipe:after,\n.l7-control-swipe__button:before,\n.l7-control-swipe__button:after {\n position: absolute;\n top: 25%;\n bottom: 25%;\n left: 50%;\n width: 2px;\n background: currentColor;\n -webkit-transform: translate(-1px, 0);\n transform: translate(-1px, 0);\n content: '';\n}\n.l7-control-swipe__button:after {\n -webkit-transform: translateX(4px);\n transform: translateX(4px);\n}\n.l7-control-swipe__button:before {\n -webkit-transform: translateX(-6px);\n transform: translateX(-6px);\n}\n"); // import './css/index.less';
35
+ loadStyles(`.l7-marker-container {
36
+ position: absolute;
37
+ width: 100%;
38
+ height: 100%;
39
+ overflow: hidden;
40
+ }
41
+ .l7-marker {
42
+ position: absolute !important;
43
+ top: 0;
44
+ left: 0;
45
+ z-index: 5;
46
+ cursor: pointer;
47
+ }
48
+ .l7-marker-cluster {
49
+ width: 40px;
50
+ height: 40px;
51
+ background-color: rgba(181, 226, 140, 0.6);
52
+ background-clip: padding-box;
53
+ border-radius: 20px;
54
+ }
55
+ .l7-marker-cluster div {
56
+ width: 30px;
57
+ height: 30px;
58
+ margin-top: 5px;
59
+ margin-left: 5px;
60
+ font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif;
61
+ text-align: center;
62
+ background-color: rgba(110, 204, 57, 0.6);
63
+ border-radius: 15px;
64
+ }
65
+ .l7-marker-cluster span {
66
+ line-height: 30px;
67
+ }
68
+ .l7-touch .l7-control-attribution,
69
+ .l7-touch .l7-control-layers,
70
+ .l7-touch .l7-bar {
71
+ box-shadow: none;
72
+ }
73
+ .l7-touch .l7-control-layers,
74
+ .l7-touch .l7-bar {
75
+ background-clip: padding-box;
76
+ border: 2px solid rgba(0, 0, 0, 0.2);
77
+ }
78
+ .mapboxgl-ctrl-logo,
79
+ .amap-logo {
80
+ display: none !important;
81
+ }
82
+ .l7-select-box {
83
+ border: 3px dashed gray;
84
+ border-radius: 2px;
85
+ position: absolute;
86
+ z-index: 999;
87
+ box-sizing: border-box;
88
+ }
89
+ .l7-control-container {
90
+ font: 12px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif;
91
+ }
92
+ .l7-control-container .l7-control {
93
+ position: relative;
94
+ z-index: 999;
95
+ float: left;
96
+ clear: both;
97
+ color: #595959;
98
+ font-size: 12px;
99
+ pointer-events: visiblePainted;
100
+ /* IE 9-10 doesn't have auto */
101
+ pointer-events: auto;
102
+ }
103
+ .l7-control-container .l7-control.l7-control--hide {
104
+ display: none;
105
+ }
106
+ .l7-control-container .l7-top {
107
+ top: 0;
108
+ display: flex;
109
+ position: absolute;
110
+ z-index: 999;
111
+ pointer-events: none;
112
+ }
113
+ .l7-control-container .l7-top .l7-control:not(.l7-control--hide) {
114
+ margin-top: 8px;
115
+ }
116
+ .l7-control-container .l7-right {
117
+ right: 0;
118
+ display: flex;
119
+ position: absolute;
120
+ z-index: 999;
121
+ pointer-events: none;
122
+ }
123
+ .l7-control-container .l7-right .l7-control:not(.l7-control--hide) {
124
+ margin-right: 8px;
125
+ }
126
+ .l7-control-container .l7-bottom {
127
+ bottom: 0;
128
+ display: flex;
129
+ position: absolute;
130
+ z-index: 999;
131
+ pointer-events: none;
132
+ }
133
+ .l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) {
134
+ margin-bottom: 8px;
135
+ }
136
+ .l7-control-container .l7-left {
137
+ left: 0;
138
+ display: flex;
139
+ position: absolute;
140
+ z-index: 999;
141
+ pointer-events: none;
142
+ }
143
+ .l7-control-container .l7-left .l7-control:not(.l7-control--hide) {
144
+ margin-left: 8px;
145
+ }
146
+ .l7-control-container .l7-center {
147
+ position: absolute;
148
+ display: flex;
149
+ justify-content: center;
150
+ }
151
+ .l7-control-container .l7-center.l7-top,
152
+ .l7-control-container .l7-center.l7-bottom {
153
+ width: 100%;
154
+ }
155
+ .l7-control-container .l7-center.l7-left,
156
+ .l7-control-container .l7-center.l7-right {
157
+ height: 100%;
158
+ }
159
+ .l7-control-container .l7-center .l7-control {
160
+ margin-right: 8px;
161
+ margin-bottom: 8px;
162
+ }
163
+ .l7-control-container .l7-row {
164
+ flex-direction: row;
165
+ }
166
+ .l7-control-container .l7-row.l7-top {
167
+ align-items: flex-start;
168
+ }
169
+ .l7-control-container .l7-row.l7-bottom {
170
+ align-items: flex-end;
171
+ }
172
+ .l7-control-container .l7-column {
173
+ flex-direction: column;
174
+ }
175
+ .l7-control-container .l7-column.l7-left {
176
+ align-items: flex-start;
177
+ }
178
+ .l7-control-container .l7-column.l7-right {
179
+ align-items: flex-end;
180
+ }
181
+ .l7-button-control {
182
+ min-width: 28px;
183
+ height: 28px;
184
+ background-color: #fff;
185
+ border-width: 0;
186
+ border-radius: 2px;
187
+ outline: 0;
188
+ cursor: pointer;
189
+ transition: all 0.2s;
190
+ display: flex;
191
+ justify-content: center;
192
+ align-items: center;
193
+ padding: 0 6px;
194
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
195
+ line-height: 16px;
196
+ }
197
+ .l7-button-control .l7-iconfont {
198
+ fill: #595959;
199
+ color: #595959;
200
+ width: 16px;
201
+ height: 16px;
202
+ }
203
+ .l7-button-control.l7-button-control--row {
204
+ padding: 0 16px 0 13px;
205
+ }
206
+ .l7-button-control.l7-button-control--row * + .l7-button-control__text {
207
+ margin-left: 8px;
208
+ }
209
+ .l7-button-control.l7-button-control--column {
210
+ height: 44px;
211
+ flex-direction: column;
212
+ }
213
+ .l7-button-control.l7-button-control--column .l7-iconfont {
214
+ margin-top: 3px;
215
+ }
216
+ .l7-button-control.l7-button-control--column .l7-button-control__text {
217
+ margin-top: 3px;
218
+ font-size: 10px;
219
+ -webkit-transform: scale(0.83333);
220
+ transform: scale(0.83333);
221
+ }
222
+ .l7-button-control:not(:disabled):hover {
223
+ background-color: #f3f3f3;
224
+ }
225
+ .l7-button-control:not(:disabled):active {
226
+ background-color: #f3f3f3;
227
+ }
228
+ .l7-button-control:disabled {
229
+ background-color: #fafafa;
230
+ color: #bdbdbd;
231
+ cursor: not-allowed;
232
+ }
233
+ .l7-button-control:disabled .l7-iconfont {
234
+ fill: #bdbdbd;
235
+ color: #bdbdbd;
236
+ }
237
+ .l7-button-control:disabled:hover {
238
+ background-color: #fafafa;
239
+ }
240
+ .l7-button-control:disabled:active {
241
+ background-color: #fafafa;
242
+ }
243
+ .l7-popper {
244
+ position: absolute;
245
+ display: flex;
246
+ justify-content: center;
247
+ align-items: center;
248
+ z-index: 5;
249
+ color: #595959;
250
+ }
251
+ .l7-popper.l7-popper-hide {
252
+ display: none;
253
+ }
254
+ .l7-popper .l7-popper-content {
255
+ min-height: 28px;
256
+ background: #fff;
257
+ border-radius: 2px;
258
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
259
+ }
260
+ .l7-popper .l7-popper-arrow {
261
+ width: 0;
262
+ height: 0;
263
+ border-width: 4px;
264
+ border-style: solid;
265
+ border-top-color: transparent;
266
+ border-bottom-color: transparent;
267
+ border-left-color: transparent;
268
+ border-right-color: transparent;
269
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
270
+ }
271
+ .l7-popper.l7-popper-left {
272
+ flex-direction: row;
273
+ }
274
+ .l7-popper.l7-popper-left .l7-popper-arrow {
275
+ border-left-color: #fff;
276
+ margin: 10px 0;
277
+ }
278
+ .l7-popper.l7-popper-right {
279
+ flex-direction: row-reverse;
280
+ }
281
+ .l7-popper.l7-popper-right .l7-popper-arrow {
282
+ border-right-color: #fff;
283
+ margin: 10px 0;
284
+ }
285
+ .l7-popper.l7-popper-top {
286
+ flex-direction: column;
287
+ }
288
+ .l7-popper.l7-popper-top .l7-popper-arrow {
289
+ border-top-color: #fff;
290
+ margin: 0 10px;
291
+ }
292
+ .l7-popper.l7-popper-bottom {
293
+ flex-direction: column-reverse;
294
+ }
295
+ .l7-popper.l7-popper-bottom .l7-popper-arrow {
296
+ border-bottom-color: #fff;
297
+ margin: 0 10px;
298
+ }
299
+ .l7-popper.l7-popper-start {
300
+ align-items: flex-start;
301
+ }
302
+ .l7-popper.l7-popper-end {
303
+ align-items: flex-end;
304
+ }
305
+ .l7-select-control--normal {
306
+ padding: 4px 0;
307
+ }
308
+ .l7-select-control--normal .l7-select-control-item {
309
+ display: flex;
310
+ align-items: center;
311
+ height: 24px;
312
+ padding: 0 16px;
313
+ font-size: 12px;
314
+ line-height: 24px;
315
+ }
316
+ .l7-select-control--normal .l7-select-control-item > * + * {
317
+ margin-left: 6px;
318
+ }
319
+ .l7-select-control--normal .l7-select-control-item input[type='checkbox'] {
320
+ width: 14px;
321
+ height: 14px;
322
+ }
323
+ .l7-select-control--normal .l7-select-control-item:hover {
324
+ background-color: #f3f3f3;
325
+ }
326
+ .l7-select-control--image {
327
+ display: flex;
328
+ flex-wrap: wrap;
329
+ align-items: flex-start;
330
+ box-sizing: content-box;
331
+ max-width: 460px;
332
+ max-height: 400px;
333
+ margin: 12px 0 0 12px;
334
+ overflow-x: hidden;
335
+ overflow-y: auto;
336
+ }
337
+ .l7-select-control--image .l7-select-control-item {
338
+ position: relative;
339
+ display: flex;
340
+ flex: 0 0 calc((100% - (12px + 9px) * 2) / 3);
341
+ flex-direction: column;
342
+ justify-content: center;
343
+ box-sizing: content-box;
344
+ margin-right: 12px;
345
+ margin-bottom: 12px;
346
+ overflow: hidden;
347
+ font-size: 12px;
348
+ border: 1px solid #fff;
349
+ border-radius: 2px;
350
+ }
351
+ .l7-select-control--image .l7-select-control-item img {
352
+ width: 100%;
353
+ height: 80px;
354
+ }
355
+ .l7-select-control--image .l7-select-control-item input[type='checkbox'] {
356
+ position: absolute;
357
+ top: 0;
358
+ right: 0;
359
+ }
360
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row {
361
+ display: flex;
362
+ align-items: center;
363
+ justify-content: center;
364
+ line-height: 26px;
365
+ }
366
+ .l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {
367
+ margin-left: 8px;
368
+ }
369
+ .l7-select-control--image .l7-select-control-item.l7-select-control-item-active {
370
+ border-color: #0370fe;
371
+ }
372
+ .l7-select-control-item {
373
+ cursor: pointer;
374
+ }
375
+ .l7-select-control-item input[type='checkbox'] {
376
+ margin: 0;
377
+ cursor: pointer;
378
+ }
379
+ .l7-select-control--multiple .l7-select-control-item:hover {
380
+ background-color: transparent;
381
+ }
382
+ .l7-control-logo {
383
+ width: 89px;
384
+ height: 16px;
385
+ -webkit-user-select: none;
386
+ -moz-user-select: none;
387
+ -ms-user-select: none;
388
+ user-select: none;
389
+ }
390
+ .l7-control-logo img {
391
+ height: 100%;
392
+ width: 100%;
393
+ }
394
+ .l7-control-logo .l7-control-logo-link {
395
+ display: block;
396
+ cursor: pointer;
397
+ }
398
+ .l7-control-logo .l7-control-logo-link img {
399
+ cursor: pointer;
400
+ }
401
+ .l7-control-mouse-location {
402
+ background-color: #fff;
403
+ border-radius: 2px;
404
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
405
+ padding: 2px 4px;
406
+ min-width: 130px;
407
+ }
408
+ .l7-control-zoom {
409
+ overflow: hidden;
410
+ border-radius: 2px;
411
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
412
+ }
413
+ .l7-control-zoom .l7-button-control {
414
+ font-size: 16px;
415
+ border-bottom: 1px solid #f0f0f0;
416
+ border-radius: 0;
417
+ box-shadow: 0 0 0;
418
+ }
419
+ .l7-control-zoom .l7-button-control .l7-iconfont {
420
+ width: 14px;
421
+ height: 14px;
422
+ }
423
+ .l7-control-zoom .l7-button-control:last-child {
424
+ border-bottom: 0;
425
+ }
426
+ .l7-control-zoom .l7-control-zoom__number {
427
+ color: #595959;
428
+ padding: 0;
429
+ }
430
+ .l7-control-zoom .l7-control-zoom__number:hover {
431
+ background-color: #fff;
432
+ }
433
+ .l7-control-scale {
434
+ display: flex;
435
+ flex-direction: column;
436
+ }
437
+ .l7-control-scale .l7-control-scale-line {
438
+ box-sizing: border-box;
439
+ padding: 2px 5px 1px;
440
+ overflow: hidden;
441
+ color: #595959;
442
+ font-size: 10px;
443
+ line-height: 1.1;
444
+ white-space: nowrap;
445
+ background: #fff;
446
+ border: 2px solid #000;
447
+ border-top: 0;
448
+ transition: width 0.1s;
449
+ }
450
+ .l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {
451
+ margin-top: -2px;
452
+ border-top: 2px solid #777;
453
+ border-bottom: none;
454
+ }
455
+ .l7-right .l7-control-scale {
456
+ display: flex;
457
+ align-items: flex-end;
458
+ }
459
+ .l7-right .l7-control-scale .l7-control-scale-line {
460
+ text-align: right;
461
+ }
462
+ .l7-popup {
463
+ position: absolute;
464
+ top: 0;
465
+ left: 0;
466
+ z-index: 5;
467
+ display: flex;
468
+ will-change: transform;
469
+ pointer-events: none;
470
+ }
471
+ .l7-popup.l7-popup-hide {
472
+ display: none;
473
+ }
474
+ .l7-popup .l7-popup-content {
475
+ position: relative;
476
+ padding: 16px;
477
+ font-size: 14px;
478
+ background: #fff;
479
+ border-radius: 3px;
480
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
481
+ }
482
+ .l7-popup .l7-popup-content .l7-popup-content__title {
483
+ margin-bottom: 8px;
484
+ font-weight: bold;
485
+ }
486
+ .l7-popup .l7-popup-content .l7-popup-close-button,
487
+ .l7-popup .l7-popup-content .l7-popup-content__title,
488
+ .l7-popup .l7-popup-content .l7-popup-content__panel {
489
+ white-space: normal;
490
+ -webkit-user-select: text;
491
+ -moz-user-select: text;
492
+ -ms-user-select: text;
493
+ user-select: text;
494
+ pointer-events: initial;
495
+ }
496
+ .l7-popup .l7-popup-content .l7-popup-close-button {
497
+ position: absolute;
498
+ top: 0;
499
+ right: 0;
500
+ width: 18px;
501
+ height: 18px;
502
+ padding: 0;
503
+ font-size: 14px;
504
+ line-height: 18px;
505
+ text-align: center;
506
+ background-color: transparent;
507
+ border: 0;
508
+ border-radius: 0 3px 0 0;
509
+ cursor: pointer;
510
+ }
511
+ .l7-popup .l7-popup-tip {
512
+ position: relative;
513
+ z-index: 1;
514
+ width: 0;
515
+ height: 0;
516
+ border: 10px solid transparent;
517
+ }
518
+ .l7-popup.l7-popup-anchor-bottom,
519
+ .l7-popup.l7-popup-anchor-bottom-left,
520
+ .l7-popup.l7-popup-anchor-bottom-right {
521
+ flex-direction: column-reverse;
522
+ }
523
+ .l7-popup.l7-popup-anchor-bottom .l7-popup-tip,
524
+ .l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,
525
+ .l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {
526
+ bottom: 1px;
527
+ }
528
+ .l7-popup.l7-popup-anchor-top,
529
+ .l7-popup.l7-popup-anchor-top-left,
530
+ .l7-popup.l7-popup-anchor-top-right {
531
+ flex-direction: column;
532
+ }
533
+ .l7-popup.l7-popup-anchor-top .l7-popup-tip,
534
+ .l7-popup.l7-popup-anchor-top-left .l7-popup-tip,
535
+ .l7-popup.l7-popup-anchor-top-right .l7-popup-tip {
536
+ top: 1px;
537
+ }
538
+ .l7-popup.l7-popup-anchor-left {
539
+ flex-direction: row;
540
+ }
541
+ .l7-popup.l7-popup-anchor-right {
542
+ flex-direction: row-reverse;
543
+ }
544
+ .l7-popup-anchor-top .l7-popup-tip {
545
+ position: relative;
546
+ align-self: center;
547
+ border-top: none;
548
+ border-bottom-color: #fff;
549
+ }
550
+ .l7-popup-anchor-top-left .l7-popup-tip {
551
+ align-self: flex-start;
552
+ border-top: none;
553
+ border-bottom-color: #fff;
554
+ border-left: none;
555
+ }
556
+ .l7-popup-anchor-top-right .l7-popup-tip {
557
+ align-self: flex-end;
558
+ border-top: none;
559
+ border-right: none;
560
+ border-bottom-color: #fff;
561
+ }
562
+ .l7-popup-anchor-bottom .l7-popup-tip {
563
+ align-self: center;
564
+ border-top-color: #fff;
565
+ border-bottom: none;
566
+ }
567
+ .l7-popup-anchor-bottom-left .l7-popup-tip {
568
+ align-self: flex-start;
569
+ border-top-color: #fff;
570
+ border-bottom: none;
571
+ border-left: none;
572
+ }
573
+ .l7-popup-anchor-bottom-right .l7-popup-tip {
574
+ align-self: flex-end;
575
+ border-top-color: #fff;
576
+ border-right: none;
577
+ border-bottom: none;
578
+ }
579
+ .l7-popup-anchor-left .l7-popup-tip {
580
+ align-self: center;
581
+ border-right-color: #fff;
582
+ border-left: none;
583
+ }
584
+ .l7-popup-anchor-right .l7-popup-tip {
585
+ right: 1px;
586
+ align-self: center;
587
+ border-right: none;
588
+ border-left-color: #fff;
589
+ }
590
+ .l7-popup-anchor-top-left .l7-popup-content {
591
+ border-top-left-radius: 0;
592
+ }
593
+ .l7-popup-anchor-top-right .l7-popup-content {
594
+ border-top-right-radius: 0;
595
+ }
596
+ .l7-popup-anchor-bottom-left .l7-popup-content {
597
+ border-bottom-left-radius: 0;
598
+ }
599
+ .l7-popup-anchor-bottom-right .l7-popup-content {
600
+ border-bottom-right-radius: 0;
601
+ }
602
+ .l7-popup-track-pointer {
603
+ display: none;
604
+ }
605
+ .l7-popup-track-pointer * {
606
+ -webkit-user-select: none;
607
+ -moz-user-select: none;
608
+ -ms-user-select: none;
609
+ user-select: none;
610
+ pointer-events: none;
611
+ }
612
+ .l7-map:hover .l7-popup-track-pointer {
613
+ display: flex;
614
+ }
615
+ .l7-map:active .l7-popup-track-pointer {
616
+ display: none;
617
+ }
618
+ .l7-layer-popup__row {
619
+ font-size: 12px;
620
+ }
621
+ .l7-layer-popup__row + .l7-layer-popup__row {
622
+ margin-top: 4px;
623
+ }
624
+ .l7-control-swipe {
625
+ position: absolute;
626
+ top: 50%;
627
+ left: 50%;
628
+ z-index: 6;
629
+ -webkit-transform: translate(-50%, -50%);
630
+ transform: translate(-50%, -50%);
631
+ touch-action: none;
632
+ }
633
+ .l7-control-swipe_hide {
634
+ display: none;
635
+ }
636
+ .l7-control-swipe:before {
637
+ position: absolute;
638
+ top: -5000px;
639
+ bottom: -5000px;
640
+ left: 50%;
641
+ z-index: -1;
642
+ width: 4px;
643
+ background: #fff;
644
+ -webkit-transform: translate(-2px, 0);
645
+ transform: translate(-2px, 0);
646
+ content: '';
647
+ }
648
+ .l7-control-swipe.horizontal:before {
649
+ top: 50%;
650
+ right: -5000px;
651
+ bottom: auto;
652
+ left: -5000px;
653
+ width: auto;
654
+ height: 4px;
655
+ }
656
+ .l7-control-swipe__button {
657
+ display: block;
658
+ width: 28px;
659
+ height: 28px;
660
+ margin: 0;
661
+ padding: 0;
662
+ color: #595959;
663
+ font-weight: bold;
664
+ font-size: inherit;
665
+ text-align: center;
666
+ text-decoration: none;
667
+ background-color: #fff;
668
+ border: none;
669
+ border-radius: 2px;
670
+ outline: none;
671
+ }
672
+ .l7-control-swipe,
673
+ .l7-control-swipe__button {
674
+ cursor: ew-resize;
675
+ }
676
+ .l7-control-swipe.horizontal,
677
+ .l7-control-swipe.horizontal button {
678
+ cursor: ns-resize;
679
+ }
680
+ .l7-control-swipe:after,
681
+ .l7-control-swipe__button:before,
682
+ .l7-control-swipe__button:after {
683
+ position: absolute;
684
+ top: 25%;
685
+ bottom: 25%;
686
+ left: 50%;
687
+ width: 2px;
688
+ background: currentColor;
689
+ -webkit-transform: translate(-1px, 0);
690
+ transform: translate(-1px, 0);
691
+ content: '';
692
+ }
693
+ .l7-control-swipe__button:after {
694
+ -webkit-transform: translateX(4px);
695
+ transform: translateX(4px);
696
+ }
697
+ .l7-control-swipe__button:before {
698
+ -webkit-transform: translateX(-6px);
699
+ transform: translateX(-6px);
700
+ }
701
+ `); // import './css/index.less';
36
702
  export * from "./control/baseControl";
37
703
  export { ExportImage } from "./control/exportImage";
38
704
  export { Fullscreen } from "./control/fullscreen";