@antv/l7-component 2.21.1 → 2.21.3

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