@antv/l7-component 2.18.2 → 2.18.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.
- package/es/assets/iconfont/iconfont.js +46 -0
- package/es/constants/index.d.ts +60 -0
- package/es/constants/index.js +60 -0
- package/es/control/baseControl/buttonControl.d.ts +59 -0
- package/es/control/baseControl/buttonControl.js +177 -0
- package/es/control/baseControl/control.d.ts +112 -0
- package/es/control/baseControl/control.js +302 -0
- package/es/control/baseControl/index.d.ts +4 -0
- package/es/control/baseControl/index.js +4 -0
- package/es/control/baseControl/popperControl.d.ts +26 -0
- package/es/control/baseControl/popperControl.js +120 -0
- package/es/control/baseControl/selectControl.d.ts +46 -0
- package/es/control/baseControl/selectControl.js +204 -0
- package/es/control/exportImage.d.ts +18 -0
- package/es/control/exportImage.js +159 -0
- package/es/control/fullscreen.d.ts +19 -0
- package/es/control/fullscreen.js +119 -0
- package/es/control/geoLocate.d.ts +16 -0
- package/es/control/geoLocate.js +107 -0
- package/es/control/layerSwitch.d.ts +19 -0
- package/es/control/layerSwitch.js +141 -0
- package/es/control/logo.d.ts +13 -0
- package/es/control/logo.js +75 -0
- package/es/control/mapTheme.d.ts +10 -0
- package/es/control/mapTheme.js +110 -0
- package/es/control/mouseLocation.d.ts +15 -0
- package/es/control/mouseLocation.js +83 -0
- package/es/control/scale.d.ts +34 -0
- package/es/control/scale.js +149 -0
- package/es/control/zoom.d.ts +38 -0
- package/es/control/zoom.js +132 -0
- package/es/css/button.less +70 -0
- package/es/css/control.less +71 -0
- package/es/css/index.css +594 -0
- package/es/css/index.less +12 -0
- package/es/css/l7.less +62 -0
- package/es/css/layerPopup.less +8 -0
- package/es/css/logo.less +18 -0
- package/es/css/mouseLocation.less +9 -0
- package/es/css/popper.less +64 -0
- package/es/css/popup.less +185 -0
- package/es/css/scale.less +34 -0
- package/es/css/select.less +86 -0
- package/es/css/variables.less +30 -0
- package/es/css/zoom.less +29 -0
- package/es/images/layers.png +0 -0
- package/es/images/layers.svg +1 -0
- package/es/images/logo.png +0 -0
- package/es/images/quanping.svg +12 -0
- package/es/index.d.ts +18 -0
- package/es/index.js +49 -0
- package/es/interface.d.ts +18 -0
- package/es/interface.js +1 -0
- package/es/marker-layer.d.ts +54 -0
- package/es/marker-layer.js +343 -0
- package/es/marker.d.ts +55 -0
- package/es/marker.js +410 -0
- package/es/popup/layerPopup.d.ts +86 -0
- package/es/popup/layerPopup.js +312 -0
- package/es/popup/popup.d.ts +139 -0
- package/es/popup/popup.js +567 -0
- package/es/utils/anchor.d.ts +22 -0
- package/es/utils/anchor.js +31 -0
- package/es/utils/icon.d.ts +1 -0
- package/es/utils/icon.js +9 -0
- package/es/utils/popper.d.ts +75 -0
- package/es/utils/popper.js +259 -0
- package/es/utils/screenfull.d.ts +2 -0
- package/es/utils/screenfull.js +128 -0
- package/lib/assets/iconfont/iconfont.js +48 -0
- package/lib/constants/index.js +68 -0
- package/lib/control/baseControl/buttonControl.js +183 -0
- package/lib/control/baseControl/control.js +314 -0
- package/lib/control/baseControl/index.js +39 -0
- package/lib/control/baseControl/popperControl.js +126 -0
- package/lib/control/baseControl/selectControl.js +210 -0
- package/lib/control/exportImage.js +165 -0
- package/lib/control/fullscreen.js +125 -0
- package/lib/control/geoLocate.js +113 -0
- package/lib/control/layerSwitch.js +147 -0
- package/lib/control/logo.js +81 -0
- package/lib/control/mapTheme.js +116 -0
- package/lib/control/mouseLocation.js +89 -0
- package/lib/control/scale.js +155 -0
- package/lib/control/zoom.js +138 -0
- package/lib/css/button.less +70 -0
- package/lib/css/control.less +71 -0
- package/lib/css/index.css +594 -0
- package/lib/css/index.less +12 -0
- package/lib/css/l7.less +62 -0
- package/lib/css/layerPopup.less +8 -0
- package/lib/css/logo.less +18 -0
- package/lib/css/mouseLocation.less +9 -0
- package/lib/css/popper.less +64 -0
- package/lib/css/popup.less +185 -0
- package/lib/css/scale.less +34 -0
- package/lib/css/select.less +86 -0
- package/lib/css/variables.less +30 -0
- package/lib/css/zoom.less +29 -0
- package/lib/images/layers.png +0 -0
- package/lib/images/layers.svg +1 -0
- package/lib/images/logo.png +0 -0
- package/lib/images/quanping.svg +12 -0
- package/lib/index.js +169 -0
- package/lib/interface.js +5 -0
- package/lib/marker-layer.js +349 -0
- package/lib/marker.js +417 -0
- package/lib/popup/layerPopup.js +317 -0
- package/lib/popup/popup.js +573 -0
- package/lib/utils/anchor.js +40 -0
- package/lib/utils/icon.js +16 -0
- package/lib/utils/popper.js +263 -0
- package/lib/utils/screenfull.js +136 -0
- package/package.json +6 -6
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
.l7-popper {
|
|
4
|
+
position: absolute;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
z-index: 5;
|
|
9
|
+
color: @l7-control-font-color;
|
|
10
|
+
&.l7-popper-hide {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
.l7-popper-content {
|
|
14
|
+
min-height: @l7-btn-control-size;
|
|
15
|
+
background: @l7-popper-control-bg-color;
|
|
16
|
+
border-radius: @l7-btn-control-border-radius;
|
|
17
|
+
box-shadow: @l7-control-shadow;
|
|
18
|
+
}
|
|
19
|
+
.l7-popper-arrow {
|
|
20
|
+
width: 0;
|
|
21
|
+
height: 0;
|
|
22
|
+
border-width: @l7-popper-control-arrow-size;
|
|
23
|
+
border-style: solid;
|
|
24
|
+
border-top-color: transparent;
|
|
25
|
+
border-bottom-color: transparent;
|
|
26
|
+
border-left-color: transparent;
|
|
27
|
+
border-right-color: transparent;
|
|
28
|
+
box-shadow: @l7-control-shadow;
|
|
29
|
+
}
|
|
30
|
+
&.l7-popper-left {
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
.l7-popper-arrow {
|
|
33
|
+
border-left-color: @l7-popper-control-bg-color;
|
|
34
|
+
margin: (@l7-btn-control-size / 2 - @l7-popper-control-arrow-size) 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&.l7-popper-right {
|
|
38
|
+
flex-direction: row-reverse;
|
|
39
|
+
.l7-popper-arrow {
|
|
40
|
+
border-right-color: @l7-popper-control-bg-color;
|
|
41
|
+
margin: (@l7-btn-control-size / 2 - @l7-popper-control-arrow-size) 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&.l7-popper-top {
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
.l7-popper-arrow {
|
|
47
|
+
border-top-color: @l7-popper-control-bg-color;
|
|
48
|
+
margin: 0 (@l7-btn-control-size / 2 - @l7-popper-control-arrow-size);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&.l7-popper-bottom {
|
|
52
|
+
flex-direction: column-reverse;
|
|
53
|
+
.l7-popper-arrow {
|
|
54
|
+
border-bottom-color: @l7-popper-control-bg-color;
|
|
55
|
+
margin: 0 (@l7-btn-control-size / 2 - @l7-popper-control-arrow-size);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
&.l7-popper-start {
|
|
59
|
+
align-items: flex-start;
|
|
60
|
+
}
|
|
61
|
+
&.l7-popper-end {
|
|
62
|
+
align-items: flex-end;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
.l7-popup {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
z-index: 5;
|
|
8
|
+
display: -webkit-flex;
|
|
9
|
+
display: flex;
|
|
10
|
+
will-change: transform;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
&.l7-popup-hide {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.l7-popup-content {
|
|
17
|
+
position: relative;
|
|
18
|
+
padding: 16px;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
background: #fff;
|
|
21
|
+
border-radius: 3px;
|
|
22
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
23
|
+
|
|
24
|
+
.l7-popup-content__title {
|
|
25
|
+
margin-bottom: 8px;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.l7-popup-close-button,
|
|
30
|
+
.l7-popup-content__title,
|
|
31
|
+
.l7-popup-content__panel {
|
|
32
|
+
white-space: normal;
|
|
33
|
+
user-select: text;
|
|
34
|
+
pointer-events: initial;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.l7-popup-close-button {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
width: 18px;
|
|
42
|
+
height: 18px;
|
|
43
|
+
padding: 0;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
line-height: 18px;
|
|
46
|
+
text-align: center;
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
border: 0;
|
|
49
|
+
border-radius: 0 3px 0 0;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.l7-popup-tip {
|
|
55
|
+
position: relative;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
width: 0;
|
|
58
|
+
height: 0;
|
|
59
|
+
border: 10px solid transparent;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.l7-popup-anchor-bottom,
|
|
63
|
+
&.l7-popup-anchor-bottom-left,
|
|
64
|
+
&.l7-popup-anchor-bottom-right {
|
|
65
|
+
-webkit-flex-direction: column-reverse;
|
|
66
|
+
flex-direction: column-reverse;
|
|
67
|
+
.l7-popup-tip {
|
|
68
|
+
bottom: 1px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.l7-popup-anchor-top,
|
|
73
|
+
&.l7-popup-anchor-top-left,
|
|
74
|
+
&.l7-popup-anchor-top-right {
|
|
75
|
+
-webkit-flex-direction: column;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
.l7-popup-tip {
|
|
78
|
+
top: 1px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.l7-popup-anchor-left {
|
|
83
|
+
-webkit-flex-direction: row;
|
|
84
|
+
flex-direction: row;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.l7-popup-anchor-right {
|
|
88
|
+
-webkit-flex-direction: row-reverse;
|
|
89
|
+
flex-direction: row-reverse;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.l7-popup-anchor-top .l7-popup-tip {
|
|
94
|
+
position: relative;
|
|
95
|
+
-webkit-align-self: center;
|
|
96
|
+
align-self: center;
|
|
97
|
+
border-top: none;
|
|
98
|
+
border-bottom-color: #fff;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.l7-popup-anchor-top-left .l7-popup-tip {
|
|
102
|
+
-webkit-align-self: flex-start;
|
|
103
|
+
align-self: flex-start;
|
|
104
|
+
border-top: none;
|
|
105
|
+
border-bottom-color: #fff;
|
|
106
|
+
border-left: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.l7-popup-anchor-top-right .l7-popup-tip {
|
|
110
|
+
-webkit-align-self: flex-end;
|
|
111
|
+
align-self: flex-end;
|
|
112
|
+
border-top: none;
|
|
113
|
+
border-right: none;
|
|
114
|
+
border-bottom-color: #fff;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.l7-popup-anchor-bottom .l7-popup-tip {
|
|
118
|
+
-webkit-align-self: center;
|
|
119
|
+
align-self: center;
|
|
120
|
+
border-top-color: #fff;
|
|
121
|
+
border-bottom: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.l7-popup-anchor-bottom-left .l7-popup-tip {
|
|
125
|
+
-webkit-align-self: flex-start;
|
|
126
|
+
align-self: flex-start;
|
|
127
|
+
border-top-color: #fff;
|
|
128
|
+
border-bottom: none;
|
|
129
|
+
border-left: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.l7-popup-anchor-bottom-right .l7-popup-tip {
|
|
133
|
+
-webkit-align-self: flex-end;
|
|
134
|
+
align-self: flex-end;
|
|
135
|
+
border-top-color: #fff;
|
|
136
|
+
border-right: none;
|
|
137
|
+
border-bottom: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.l7-popup-anchor-left .l7-popup-tip {
|
|
141
|
+
-webkit-align-self: center;
|
|
142
|
+
align-self: center;
|
|
143
|
+
border-right-color: #fff;
|
|
144
|
+
border-left: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.l7-popup-anchor-right .l7-popup-tip {
|
|
148
|
+
right: 1px;
|
|
149
|
+
-webkit-align-self: center;
|
|
150
|
+
align-self: center;
|
|
151
|
+
border-right: none;
|
|
152
|
+
border-left-color: #fff;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.l7-popup-anchor-top-left .l7-popup-content {
|
|
156
|
+
border-top-left-radius: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.l7-popup-anchor-top-right .l7-popup-content {
|
|
160
|
+
border-top-right-radius: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.l7-popup-anchor-bottom-left .l7-popup-content {
|
|
164
|
+
border-bottom-left-radius: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.l7-popup-anchor-bottom-right .l7-popup-content {
|
|
168
|
+
border-bottom-right-radius: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.l7-popup-track-pointer {
|
|
172
|
+
display: none;
|
|
173
|
+
* {
|
|
174
|
+
user-select: none;
|
|
175
|
+
pointer-events: none;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.l7-map:hover .l7-popup-track-pointer {
|
|
180
|
+
display: flex;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.l7-map:active .l7-popup-track-pointer {
|
|
184
|
+
display: none;
|
|
185
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
.l7-control-scale {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
.l7-control-scale-line {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
padding: 2px 5px 1px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
color: @l7-control-font-color;
|
|
11
|
+
font-size: 10px;
|
|
12
|
+
line-height: 1.1;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
background: @l7-control-bg-color;
|
|
15
|
+
border: 2px solid #000;
|
|
16
|
+
border-top: 0;
|
|
17
|
+
transition: width 0.1s;
|
|
18
|
+
& + & {
|
|
19
|
+
margin-top: -2px;
|
|
20
|
+
border-top: 2px solid #777;
|
|
21
|
+
border-bottom: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.l7-right {
|
|
27
|
+
.l7-control-scale {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: flex-end;
|
|
30
|
+
.l7-control-scale-line {
|
|
31
|
+
text-align: right;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
.l7-select-control--normal {
|
|
4
|
+
padding: 4px 0;
|
|
5
|
+
.l7-select-control-item {
|
|
6
|
+
height: 24px;
|
|
7
|
+
line-height: 24px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
padding: 0 16px;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
> * + * {
|
|
13
|
+
margin-left: 6px;
|
|
14
|
+
}
|
|
15
|
+
input[type='checkbox'] {
|
|
16
|
+
height: 14px;
|
|
17
|
+
width: 14px;
|
|
18
|
+
}
|
|
19
|
+
&:hover {
|
|
20
|
+
background-color: @l7-btn-control-bg-hover-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.l7-select-control--image {
|
|
26
|
+
padding: 12px 12px 0 12px;
|
|
27
|
+
width: @l7-select-control-image-popper-width;
|
|
28
|
+
height: 320px;
|
|
29
|
+
overflow: auto;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
align-items: flex-start;
|
|
34
|
+
.l7-select-control-item {
|
|
35
|
+
margin-right: 12px;
|
|
36
|
+
border-radius: @l7-btn-control-border-radius;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
border: 1px solid @l7-popper-control-bg-color;
|
|
39
|
+
box-sizing: content-box;
|
|
40
|
+
width: calc((100% - 36px) / 3);
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
margin-bottom: 12px;
|
|
45
|
+
position: relative;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
img {
|
|
48
|
+
width: 142px;
|
|
49
|
+
height: 80px;
|
|
50
|
+
}
|
|
51
|
+
input[type='checkbox'] {
|
|
52
|
+
position: absolute;
|
|
53
|
+
right: 0;
|
|
54
|
+
top: 0;
|
|
55
|
+
}
|
|
56
|
+
.l7-select-control-item-row {
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
align-items: center;
|
|
60
|
+
line-height: 26px;
|
|
61
|
+
> * + * {
|
|
62
|
+
margin-left: 8px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&.l7-select-control-item-active {
|
|
66
|
+
border-color: @l7-select-control-active-color;
|
|
67
|
+
}
|
|
68
|
+
&:nth-child(3n) {
|
|
69
|
+
margin-right: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.l7-select-control-item {
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
input[type='checkbox'] {
|
|
77
|
+
margin: 0;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.l7-select-control--multiple {
|
|
83
|
+
.l7-select-control-item:hover {
|
|
84
|
+
background-color: transparent;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Control
|
|
2
|
+
@l7-control-space: 8px;
|
|
3
|
+
@l7-control-font-size: 12px;
|
|
4
|
+
@l7-control-font-color: #595959;
|
|
5
|
+
@l7-control-bg-color: #fff;
|
|
6
|
+
@l7-control-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
|
|
7
|
+
|
|
8
|
+
// ButtonControl
|
|
9
|
+
@l7-btn-control-bg-color: @l7-control-bg-color;
|
|
10
|
+
@l7-btn-control-bg-hover-color: #f3f3f3;
|
|
11
|
+
@l7-btn-control-bg-active-color: @l7-btn-control-bg-hover-color;
|
|
12
|
+
@l7-btn-control-size: 28px;
|
|
13
|
+
@l7-btn-icon-size: 16px;
|
|
14
|
+
@l7-btn-control-border-radius: 2px;
|
|
15
|
+
@l7-btn-control-disabled-bg-color: #fafafa;
|
|
16
|
+
@l7-btn-control-disabled-font-color: #bdbdbd;
|
|
17
|
+
@l7-btn-border-color: #f0f0f0;
|
|
18
|
+
@l7-btn-column-height: 44px;
|
|
19
|
+
|
|
20
|
+
// PopperControl
|
|
21
|
+
@l7-popper-control-bg-color: @l7-btn-control-bg-color;
|
|
22
|
+
@l7-popper-control-arrow-size: 4px;
|
|
23
|
+
|
|
24
|
+
// SelectControl
|
|
25
|
+
@l7-select-control-active-color: #0370fe;
|
|
26
|
+
@l7-select-control-image-popper-width: 474px;
|
|
27
|
+
|
|
28
|
+
@position-list: top, right, bottom, left;
|
|
29
|
+
|
|
30
|
+
@l7-control-z-index: 999;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
@zoom-icon-size: 14px;
|
|
4
|
+
|
|
5
|
+
.l7-control-zoom {
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
border-radius: @l7-btn-control-border-radius;
|
|
8
|
+
box-shadow: @l7-control-shadow;
|
|
9
|
+
.l7-button-control {
|
|
10
|
+
font-size: @l7-btn-icon-size;
|
|
11
|
+
border-bottom: 1px solid @l7-btn-border-color;
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
box-shadow: 0 0 0;
|
|
14
|
+
.l7-iconfont {
|
|
15
|
+
width: @zoom-icon-size;
|
|
16
|
+
height: @zoom-icon-size;
|
|
17
|
+
}
|
|
18
|
+
&:last-child {
|
|
19
|
+
border-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
& &__number {
|
|
23
|
+
color: @l7-control-font-color;
|
|
24
|
+
padding: 0;
|
|
25
|
+
&:hover {
|
|
26
|
+
background-color: @l7-btn-control-bg-color;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" class="icon" p-id="8341" t="1566292427369" version="1.1" viewBox="0 0 1024 1024"><defs><style type="text/css"/></defs><path fill="#000" d="M256 341.333333l256 128 256-128-256-128-256 128z m276.864-208.384l341.034667 173.909334c20.736 10.581333 28.202667 34.56 16.682666 53.632a41.386667 41.386667 0 0 1-16.64 15.317333l-341.077333 173.909333a46.336 46.336 0 0 1-41.728 0L150.101333 375.808c-20.736-10.581333-28.202667-34.56-16.682666-53.632a41.386667 41.386667 0 0 1 16.64-15.317333l341.077333-173.909334c12.970667-6.613333 28.757333-6.613333 41.728 0z m0 587.349334a45.653333 45.653333 0 0 1-41.728 0l-341.034667-176.938667c-20.736-10.752-28.202667-35.157333-16.682666-54.528a41.642667 41.642667 0 0 1 16.64-15.573333 34.901333 34.901333 0 0 1 32.213333 0l308.906667 160.213333c12.928 6.741333 28.714667 6.741333 41.685333 0l308.864-160.213333a34.901333 34.901333 0 0 1 32.170667 0c20.736 10.752 28.202667 35.157333 16.682666 54.528a41.642667 41.642667 0 0 1-16.64 15.573333l-341.077333 176.938667z m0 170.666666a45.653333 45.653333 0 0 1-41.728 0l-341.034667-176.938666c-20.736-10.752-28.202667-35.157333-16.682666-54.528a41.642667 41.642667 0 0 1 16.64-15.573334 34.901333 34.901333 0 0 1 32.213333 0l308.906667 160.213334c12.928 6.741333 28.714667 6.741333 41.685333 0l308.864-160.213334a34.901333 34.901333 0 0 1 32.170667 0c20.736 10.752 28.202667 35.157333 16.682666 54.528a41.642667 41.642667 0 0 1-16.64 15.573334l-341.077333 176.938666z" p-id="8342"/></svg>
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<!-- Created with Vectornator (http://vectornator.io/) -->
|
|
4
|
+
<svg height="100%" stroke-miterlimit="10" style="fill-rule:nonzero;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;" version="1.1" viewBox="0 0 682.67 682.67" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:vectornator="http://vectornator.io" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
5
|
+
<defs/>
|
|
6
|
+
<clipPath id="ArtboardFrame">
|
|
7
|
+
<rect height="682.67" width="682.67" x="0" y="0"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
<g clip-path="url(#ArtboardFrame)" id="Untitled" vectornator:layerName="Untitled">
|
|
10
|
+
<path d="M0 477.87L0 580.27C0.00552233 636.822 45.8483 682.664 102.4 682.67L204.8 682.67C223.424 682.351 238.356 667.162 238.356 648.535C238.356 629.908 223.424 614.719 204.8 614.4L102.4 614.4C83.5505 614.4 68.27 599.119 68.27 580.27L68.27 477.87C68.4812 465.535 62.0216 454.046 51.3734 447.817C40.7252 441.588 27.5448 441.588 16.8966 447.817C6.24842 454.046-0.211108 465.535 0 477.87ZM477.87 682.67L580.27 682.67C636.822 682.664 682.664 636.822 682.67 580.27L682.67 477.87C682.881 465.535 676.422 454.046 665.773 447.817C655.125 441.588 641.945 441.588 631.297 447.817C620.648 454.046 614.189 465.535 614.4 477.87L614.4 580.27C614.4 599.119 599.119 614.4 580.27 614.4L477.87 614.4C465.535 614.189 454.046 620.648 447.817 631.297C441.588 641.945 441.588 655.125 447.817 665.773C454.046 676.422 465.535 682.881 477.87 682.67ZM682.67 204.8L682.67 102.4C682.664 45.8483 636.822 0.00553344 580.27 1.15748e-06L477.87 1.15748e-06C465.535-0.211139 454.046 6.24838 447.817 16.8966C441.588 27.5448 441.588 40.7252 447.817 51.3734C454.046 62.0216 465.535 68.4811 477.87 68.27L580.27 68.27C599.119 68.27 614.4 83.5505 614.4 102.4L614.4 204.8C614.719 223.424 629.908 238.356 648.535 238.356C667.162 238.356 682.351 223.424 682.67 204.8ZM204.8 0L102.4 0C45.8483 0.00551165 0.00552271 45.8483-3.66902e-07 102.4L-3.66902e-07 204.8C0.318807 223.424 15.5078 238.356 34.135 238.356C52.7622 238.356 67.9512 223.424 68.27 204.8L68.27 102.4C68.27 83.5505 83.5505 68.27 102.4 68.27L204.8 68.27C223.424 67.9512 238.356 52.7622 238.356 34.135C238.356 15.5078 223.424 0.318804 204.8 0Z" fill="#333333" fill-rule="nonzero" opacity="1" stroke="none"/>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
var _exportNames = {
|
|
8
|
+
Marker: 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
|
|
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
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "Marker", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function get() {
|
|
67
|
+
return _marker.default;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "MarkerLayer", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function get() {
|
|
73
|
+
return _markerLayer.default;
|
|
74
|
+
}
|
|
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
|
+
});
|
|
100
|
+
var _marker = _interopRequireDefault(require("./marker"));
|
|
101
|
+
var _markerLayer = _interopRequireDefault(require("./marker-layer"));
|
|
102
|
+
require("./assets/iconfont/iconfont.js");
|
|
103
|
+
var _baseControl = require("./control/baseControl");
|
|
104
|
+
Object.keys(_baseControl).forEach(function (key) {
|
|
105
|
+
if (key === "default" || key === "__esModule") return;
|
|
106
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
107
|
+
if (key in exports && exports[key] === _baseControl[key]) return;
|
|
108
|
+
Object.defineProperty(exports, key, {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _baseControl[key];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
var _exportImage = require("./control/exportImage");
|
|
116
|
+
var _fullscreen = require("./control/fullscreen");
|
|
117
|
+
var _geoLocate = require("./control/geoLocate");
|
|
118
|
+
var _layerSwitch = require("./control/layerSwitch");
|
|
119
|
+
var _logo = require("./control/logo");
|
|
120
|
+
var _mapTheme = require("./control/mapTheme");
|
|
121
|
+
var _mouseLocation = require("./control/mouseLocation");
|
|
122
|
+
var _scale = require("./control/scale");
|
|
123
|
+
var _zoom = require("./control/zoom");
|
|
124
|
+
var _interface = require("./interface");
|
|
125
|
+
Object.keys(_interface).forEach(function (key) {
|
|
126
|
+
if (key === "default" || key === "__esModule") return;
|
|
127
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
128
|
+
if (key in exports && exports[key] === _interface[key]) return;
|
|
129
|
+
Object.defineProperty(exports, key, {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function get() {
|
|
132
|
+
return _interface[key];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
var _layerPopup = require("./popup/layerPopup");
|
|
137
|
+
var _popup = require("./popup/popup");
|
|
138
|
+
// 引入样式
|
|
139
|
+
function loadStyles(css, doc) {
|
|
140
|
+
var isMiniAli = typeof my !== 'undefined' && !!my && typeof my.showToast === 'function' && my.isFRM !== true;
|
|
141
|
+
var isWeChatMiniProgram = typeof wx !== 'undefined' && wx !== null && (typeof wx.request !== 'undefined' || typeof wx.miniProgram !== 'undefined');
|
|
142
|
+
if (isMiniAli || isWeChatMiniProgram) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (!doc) doc = document;
|
|
146
|
+
if (!doc) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
var head = doc.head || doc.getElementsByTagName('head')[0];
|
|
150
|
+
if (!head) {
|
|
151
|
+
head = doc.createElement('head');
|
|
152
|
+
var body = doc.body || doc.getElementsByTagName('body')[0];
|
|
153
|
+
if (body) {
|
|
154
|
+
body.parentNode.insertBefore(head, body);
|
|
155
|
+
} else {
|
|
156
|
+
doc.documentElement.appendChild(head);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
var style = doc.createElement('style');
|
|
160
|
+
style.type = 'text/css';
|
|
161
|
+
if (style.styleSheet) {
|
|
162
|
+
style.styleSheet.cssText = css;
|
|
163
|
+
} else {
|
|
164
|
+
style.appendChild(doc.createTextNode(css));
|
|
165
|
+
}
|
|
166
|
+
head.appendChild(style);
|
|
167
|
+
return style;
|
|
168
|
+
}
|
|
169
|
+
loadStyles(".l7-marker-container {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.l7-marker {\n position: absolute !important;\n top: 0;\n left: 0;\n z-index: 5;\n cursor: pointer;\n}\n.l7-marker-cluster {\n width: 40px;\n height: 40px;\n background-color: rgba(181, 226, 140, 0.6);\n background-clip: padding-box;\n border-radius: 20px;\n}\n.l7-marker-cluster div {\n width: 30px;\n height: 30px;\n margin-top: 5px;\n margin-left: 5px;\n font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif;\n text-align: center;\n background-color: rgba(110, 204, 57, 0.6);\n border-radius: 15px;\n}\n.l7-marker-cluster span {\n line-height: 30px;\n}\n.l7-touch .l7-control-attribution,\n.l7-touch .l7-control-layers,\n.l7-touch .l7-bar {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.l7-touch .l7-control-layers,\n.l7-touch .l7-bar {\n background-clip: padding-box;\n border: 2px solid rgba(0, 0, 0, 0.2);\n}\n.mapboxgl-ctrl-logo,\n.amap-logo {\n display: none !important;\n}\n.l7-select-box {\n border: 3px dashed gray;\n border-radius: 2px;\n position: absolute;\n z-index: 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 height: 24px;\n line-height: 24px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 0 16px;\n font-size: 12px;\n}\n.l7-select-control--normal .l7-select-control-item > * + * {\n margin-left: 6px;\n}\n.l7-select-control--normal .l7-select-control-item input[type='checkbox'] {\n height: 14px;\n width: 14px;\n}\n.l7-select-control--normal .l7-select-control-item:hover {\n background-color: #f3f3f3;\n}\n.l7-select-control--image {\n padding: 12px 12px 0 12px;\n width: 474px;\n height: 320px;\n overflow: auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.l7-select-control--image .l7-select-control-item {\n margin-right: 12px;\n border-radius: 2px;\n overflow: hidden;\n border: 1px solid #fff;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n width: calc((100% - 36px) / 3);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin-bottom: 12px;\n position: relative;\n font-size: 12px;\n}\n.l7-select-control--image .l7-select-control-item img {\n width: 142px;\n height: 80px;\n}\n.l7-select-control--image .l7-select-control-item input[type='checkbox'] {\n position: absolute;\n right: 0;\n top: 0;\n}\n.l7-select-control--image .l7-select-control-item .l7-select-control-item-row {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n line-height: 26px;\n}\n.l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * {\n margin-left: 8px;\n}\n.l7-select-control--image .l7-select-control-item.l7-select-control-item-active {\n border-color: #0370fe;\n}\n.l7-select-control--image .l7-select-control-item:nth-child(3n) {\n margin-right: 0;\n}\n.l7-select-control-item {\n cursor: pointer;\n}\n.l7-select-control-item input[type='checkbox'] {\n margin: 0;\n cursor: pointer;\n}\n.l7-select-control--multiple .l7-select-control-item:hover {\n background-color: transparent;\n}\n.l7-control-logo {\n width: 89px;\n height: 16px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.l7-control-logo img {\n height: 100%;\n width: 100%;\n}\n.l7-control-logo .l7-control-logo-link {\n display: block;\n cursor: pointer;\n}\n.l7-control-logo .l7-control-logo-link img {\n cursor: pointer;\n}\n.l7-control-mouse-location {\n background-color: #fff;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n padding: 2px 4px;\n min-width: 130px;\n}\n.l7-control-zoom {\n overflow: hidden;\n border-radius: 2px;\n -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);\n}\n.l7-control-zoom .l7-button-control {\n font-size: 16px;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 0;\n -webkit-box-shadow: 0 0 0;\n box-shadow: 0 0 0;\n}\n.l7-control-zoom .l7-button-control .l7-iconfont {\n width: 14px;\n height: 14px;\n}\n.l7-control-zoom .l7-button-control:last-child {\n border-bottom: 0;\n}\n.l7-control-zoom .l7-control-zoom__number {\n color: #595959;\n padding: 0;\n}\n.l7-control-zoom .l7-control-zoom__number:hover {\n background-color: #fff;\n}\n.l7-control-scale {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-control-scale .l7-control-scale-line {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding: 2px 5px 1px;\n overflow: hidden;\n color: #595959;\n font-size: 10px;\n line-height: 1.1;\n white-space: nowrap;\n background: #fff;\n border: 2px solid #000;\n border-top: 0;\n -webkit-transition: width 0.1s;\n transition: width 0.1s;\n}\n.l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line {\n margin-top: -2px;\n border-top: 2px solid #777;\n border-bottom: none;\n}\n.l7-right .l7-control-scale {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.l7-right .l7-control-scale .l7-control-scale-line {\n text-align: right;\n}\n.l7-popup {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 5;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n will-change: transform;\n pointer-events: none;\n}\n.l7-popup.l7-popup-hide {\n display: none;\n}\n.l7-popup .l7-popup-content {\n position: relative;\n padding: 16px;\n font-size: 14px;\n background: #fff;\n border-radius: 3px;\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n}\n.l7-popup .l7-popup-content .l7-popup-content__title {\n margin-bottom: 8px;\n font-weight: bold;\n}\n.l7-popup .l7-popup-content .l7-popup-close-button,\n.l7-popup .l7-popup-content .l7-popup-content__title,\n.l7-popup .l7-popup-content .l7-popup-content__panel {\n white-space: normal;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n pointer-events: initial;\n}\n.l7-popup .l7-popup-content .l7-popup-close-button {\n position: absolute;\n top: 0;\n right: 0;\n width: 18px;\n height: 18px;\n padding: 0;\n font-size: 14px;\n line-height: 18px;\n text-align: center;\n background-color: transparent;\n border: 0;\n border-radius: 0 3px 0 0;\n cursor: pointer;\n}\n.l7-popup .l7-popup-tip {\n position: relative;\n z-index: 1;\n width: 0;\n height: 0;\n border: 10px solid transparent;\n}\n.l7-popup.l7-popup-anchor-bottom,\n.l7-popup.l7-popup-anchor-bottom-left,\n.l7-popup.l7-popup-anchor-bottom-right {\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.l7-popup.l7-popup-anchor-bottom .l7-popup-tip,\n.l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip,\n.l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip {\n bottom: 1px;\n}\n.l7-popup.l7-popup-anchor-top,\n.l7-popup.l7-popup-anchor-top-left,\n.l7-popup.l7-popup-anchor-top-right {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.l7-popup.l7-popup-anchor-top .l7-popup-tip,\n.l7-popup.l7-popup-anchor-top-left .l7-popup-tip,\n.l7-popup.l7-popup-anchor-top-right .l7-popup-tip {\n top: 1px;\n}\n.l7-popup.l7-popup-anchor-left {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.l7-popup.l7-popup-anchor-right {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.l7-popup-anchor-top .l7-popup-tip {\n position: relative;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-top: none;\n border-bottom-color: #fff;\n}\n.l7-popup-anchor-top-left .l7-popup-tip {\n -webkit-align-self: flex-start;\n -ms-flex-item-align: start;\n align-self: flex-start;\n border-top: none;\n border-bottom-color: #fff;\n border-left: none;\n}\n.l7-popup-anchor-top-right .l7-popup-tip {\n -webkit-align-self: flex-end;\n -ms-flex-item-align: end;\n align-self: flex-end;\n border-top: none;\n border-right: none;\n border-bottom-color: #fff;\n}\n.l7-popup-anchor-bottom .l7-popup-tip {\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-top-color: #fff;\n border-bottom: none;\n}\n.l7-popup-anchor-bottom-left .l7-popup-tip {\n -webkit-align-self: flex-start;\n -ms-flex-item-align: start;\n align-self: flex-start;\n border-top-color: #fff;\n border-bottom: none;\n border-left: none;\n}\n.l7-popup-anchor-bottom-right .l7-popup-tip {\n -webkit-align-self: flex-end;\n -ms-flex-item-align: end;\n align-self: flex-end;\n border-top-color: #fff;\n border-right: none;\n border-bottom: none;\n}\n.l7-popup-anchor-left .l7-popup-tip {\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-right-color: #fff;\n border-left: none;\n}\n.l7-popup-anchor-right .l7-popup-tip {\n right: 1px;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-right: none;\n border-left-color: #fff;\n}\n.l7-popup-anchor-top-left .l7-popup-content {\n border-top-left-radius: 0;\n}\n.l7-popup-anchor-top-right .l7-popup-content {\n border-top-right-radius: 0;\n}\n.l7-popup-anchor-bottom-left .l7-popup-content {\n border-bottom-left-radius: 0;\n}\n.l7-popup-anchor-bottom-right .l7-popup-content {\n border-bottom-right-radius: 0;\n}\n.l7-popup-track-pointer {\n display: none;\n}\n.l7-popup-track-pointer * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n pointer-events: none;\n}\n.l7-map:hover .l7-popup-track-pointer {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.l7-map:active .l7-popup-track-pointer {\n display: none;\n}\n.l7-layer-popup__row {\n font-size: 12px;\n}\n.l7-layer-popup__row + .l7-layer-popup__row {\n margin-top: 4px;\n}\n");
|