@antv/l7-map 2.21.2 → 2.21.4-beta.0
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/css/l7.css +52 -21
- package/es/earthmap.js +52 -21
- package/es/handler/touch/index.d.ts +1 -1
- package/es/map.js +52 -21
- package/lib/css/l7.css +52 -21
- package/lib/earthmap.js +52 -21
- package/lib/handler/touch/index.d.ts +1 -1
- package/lib/map.js +52 -21
- package/package.json +12 -14
package/es/css/l7.css
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
.l7-map {
|
|
2
|
-
font:
|
|
2
|
+
font:
|
|
3
|
+
12px/20px 'Helvetica Neue',
|
|
4
|
+
Arial,
|
|
5
|
+
Helvetica,
|
|
6
|
+
sans-serif;
|
|
3
7
|
overflow: hidden;
|
|
4
8
|
position: relative;
|
|
5
9
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -60,11 +64,27 @@
|
|
|
60
64
|
.l7-ctrl-top-left,
|
|
61
65
|
.l7-ctrl-top-right,
|
|
62
66
|
.l7-ctrl-bottom-left,
|
|
63
|
-
.l7-ctrl-bottom-right {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
.l7-ctrl-bottom-right {
|
|
68
|
+
position: absolute;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
z-index: 2;
|
|
71
|
+
}
|
|
72
|
+
.l7-ctrl-top-left {
|
|
73
|
+
top: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
}
|
|
76
|
+
.l7-ctrl-top-right {
|
|
77
|
+
top: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
}
|
|
80
|
+
.l7-ctrl-bottom-left {
|
|
81
|
+
bottom: 0;
|
|
82
|
+
left: 0;
|
|
83
|
+
}
|
|
84
|
+
.l7-ctrl-bottom-right {
|
|
85
|
+
right: 0;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
}
|
|
68
88
|
|
|
69
89
|
.l7-ctrl {
|
|
70
90
|
clear: both;
|
|
@@ -73,26 +93,37 @@
|
|
|
73
93
|
/* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */
|
|
74
94
|
transform: translate(0, 0);
|
|
75
95
|
}
|
|
76
|
-
.l7-ctrl-top-left .l7-ctrl
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
96
|
+
.l7-ctrl-top-left .l7-ctrl {
|
|
97
|
+
margin: 10px 0 0 10px;
|
|
98
|
+
float: left;
|
|
99
|
+
}
|
|
100
|
+
.l7-ctrl-top-right .l7-ctrl {
|
|
101
|
+
margin: 10px 10px 0 0;
|
|
102
|
+
float: right;
|
|
103
|
+
}
|
|
104
|
+
.l7-ctrl-bottom-left .l7-ctrl {
|
|
105
|
+
margin: 0 0 10px 10px;
|
|
106
|
+
float: left;
|
|
107
|
+
}
|
|
108
|
+
.l7-ctrl-bottom-right .l7-ctrl {
|
|
109
|
+
margin: 0 10px 10px 0;
|
|
110
|
+
float: right;
|
|
111
|
+
}
|
|
81
112
|
|
|
82
113
|
.l7-crosshair,
|
|
83
114
|
.l7-crosshair .l7-interactive,
|
|
84
115
|
.l7-crosshair .l7-interactive:active {
|
|
85
|
-
|
|
116
|
+
cursor: crosshair;
|
|
86
117
|
}
|
|
87
118
|
|
|
88
119
|
.l7-boxzoom {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: 0;
|
|
122
|
+
left: 0;
|
|
123
|
+
width: 0;
|
|
124
|
+
height: 0;
|
|
125
|
+
background: #fff;
|
|
126
|
+
border: 2px dotted #202020;
|
|
127
|
+
opacity: 0.5;
|
|
128
|
+
z-index: 10;
|
|
98
129
|
}
|
package/es/earthmap.js
CHANGED
|
@@ -32,7 +32,11 @@ function loadStyles(css, doc) {
|
|
|
32
32
|
return style;
|
|
33
33
|
}
|
|
34
34
|
loadStyles(`.l7-map {
|
|
35
|
-
font:
|
|
35
|
+
font:
|
|
36
|
+
12px/20px 'Helvetica Neue',
|
|
37
|
+
Arial,
|
|
38
|
+
Helvetica,
|
|
39
|
+
sans-serif;
|
|
36
40
|
overflow: hidden;
|
|
37
41
|
position: relative;
|
|
38
42
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -89,11 +93,27 @@ loadStyles(`.l7-map {
|
|
|
89
93
|
.l7-ctrl-top-left,
|
|
90
94
|
.l7-ctrl-top-right,
|
|
91
95
|
.l7-ctrl-bottom-left,
|
|
92
|
-
.l7-ctrl-bottom-right {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
.l7-ctrl-bottom-right {
|
|
97
|
+
position: absolute;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
z-index: 2;
|
|
100
|
+
}
|
|
101
|
+
.l7-ctrl-top-left {
|
|
102
|
+
top: 0;
|
|
103
|
+
left: 0;
|
|
104
|
+
}
|
|
105
|
+
.l7-ctrl-top-right {
|
|
106
|
+
top: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
}
|
|
109
|
+
.l7-ctrl-bottom-left {
|
|
110
|
+
bottom: 0;
|
|
111
|
+
left: 0;
|
|
112
|
+
}
|
|
113
|
+
.l7-ctrl-bottom-right {
|
|
114
|
+
right: 0;
|
|
115
|
+
bottom: 0;
|
|
116
|
+
}
|
|
97
117
|
|
|
98
118
|
.l7-ctrl {
|
|
99
119
|
clear: both;
|
|
@@ -103,28 +123,39 @@ loadStyles(`.l7-map {
|
|
|
103
123
|
-webkit-transform: translate(0, 0);
|
|
104
124
|
transform: translate(0, 0);
|
|
105
125
|
}
|
|
106
|
-
.l7-ctrl-top-left .l7-ctrl
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
126
|
+
.l7-ctrl-top-left .l7-ctrl {
|
|
127
|
+
margin: 10px 0 0 10px;
|
|
128
|
+
float: left;
|
|
129
|
+
}
|
|
130
|
+
.l7-ctrl-top-right .l7-ctrl {
|
|
131
|
+
margin: 10px 10px 0 0;
|
|
132
|
+
float: right;
|
|
133
|
+
}
|
|
134
|
+
.l7-ctrl-bottom-left .l7-ctrl {
|
|
135
|
+
margin: 0 0 10px 10px;
|
|
136
|
+
float: left;
|
|
137
|
+
}
|
|
138
|
+
.l7-ctrl-bottom-right .l7-ctrl {
|
|
139
|
+
margin: 0 10px 10px 0;
|
|
140
|
+
float: right;
|
|
141
|
+
}
|
|
111
142
|
|
|
112
143
|
.l7-crosshair,
|
|
113
144
|
.l7-crosshair .l7-interactive,
|
|
114
145
|
.l7-crosshair .l7-interactive:active {
|
|
115
|
-
|
|
146
|
+
cursor: crosshair;
|
|
116
147
|
}
|
|
117
148
|
|
|
118
149
|
.l7-boxzoom {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
150
|
+
position: absolute;
|
|
151
|
+
top: 0;
|
|
152
|
+
left: 0;
|
|
153
|
+
width: 0;
|
|
154
|
+
height: 0;
|
|
155
|
+
background: #fff;
|
|
156
|
+
border: 2px dotted #202020;
|
|
157
|
+
opacity: 0.5;
|
|
158
|
+
z-index: 10;
|
|
128
159
|
}
|
|
129
160
|
`);
|
|
130
161
|
import LngLat from "./geo/lng_lat";
|
|
@@ -2,4 +2,4 @@ import TouchPanHandler from './touch_pan';
|
|
|
2
2
|
import TouchPitchHandler from './touch_pitch';
|
|
3
3
|
import TouchRotateHandler from './touch_rotate';
|
|
4
4
|
import TouchZoomHandler from './touch_zoom';
|
|
5
|
-
export { TouchPanHandler, TouchPitchHandler, TouchRotateHandler, TouchZoomHandler
|
|
5
|
+
export { TouchPanHandler, TouchPitchHandler, TouchRotateHandler, TouchZoomHandler };
|
package/es/map.js
CHANGED
|
@@ -32,7 +32,11 @@ function loadStyles(css, doc) {
|
|
|
32
32
|
return style;
|
|
33
33
|
}
|
|
34
34
|
loadStyles(`.l7-map {
|
|
35
|
-
font:
|
|
35
|
+
font:
|
|
36
|
+
12px/20px 'Helvetica Neue',
|
|
37
|
+
Arial,
|
|
38
|
+
Helvetica,
|
|
39
|
+
sans-serif;
|
|
36
40
|
overflow: hidden;
|
|
37
41
|
position: relative;
|
|
38
42
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -89,11 +93,27 @@ loadStyles(`.l7-map {
|
|
|
89
93
|
.l7-ctrl-top-left,
|
|
90
94
|
.l7-ctrl-top-right,
|
|
91
95
|
.l7-ctrl-bottom-left,
|
|
92
|
-
.l7-ctrl-bottom-right {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
.l7-ctrl-bottom-right {
|
|
97
|
+
position: absolute;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
z-index: 2;
|
|
100
|
+
}
|
|
101
|
+
.l7-ctrl-top-left {
|
|
102
|
+
top: 0;
|
|
103
|
+
left: 0;
|
|
104
|
+
}
|
|
105
|
+
.l7-ctrl-top-right {
|
|
106
|
+
top: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
}
|
|
109
|
+
.l7-ctrl-bottom-left {
|
|
110
|
+
bottom: 0;
|
|
111
|
+
left: 0;
|
|
112
|
+
}
|
|
113
|
+
.l7-ctrl-bottom-right {
|
|
114
|
+
right: 0;
|
|
115
|
+
bottom: 0;
|
|
116
|
+
}
|
|
97
117
|
|
|
98
118
|
.l7-ctrl {
|
|
99
119
|
clear: both;
|
|
@@ -103,28 +123,39 @@ loadStyles(`.l7-map {
|
|
|
103
123
|
-webkit-transform: translate(0, 0);
|
|
104
124
|
transform: translate(0, 0);
|
|
105
125
|
}
|
|
106
|
-
.l7-ctrl-top-left .l7-ctrl
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
126
|
+
.l7-ctrl-top-left .l7-ctrl {
|
|
127
|
+
margin: 10px 0 0 10px;
|
|
128
|
+
float: left;
|
|
129
|
+
}
|
|
130
|
+
.l7-ctrl-top-right .l7-ctrl {
|
|
131
|
+
margin: 10px 10px 0 0;
|
|
132
|
+
float: right;
|
|
133
|
+
}
|
|
134
|
+
.l7-ctrl-bottom-left .l7-ctrl {
|
|
135
|
+
margin: 0 0 10px 10px;
|
|
136
|
+
float: left;
|
|
137
|
+
}
|
|
138
|
+
.l7-ctrl-bottom-right .l7-ctrl {
|
|
139
|
+
margin: 0 10px 10px 0;
|
|
140
|
+
float: right;
|
|
141
|
+
}
|
|
111
142
|
|
|
112
143
|
.l7-crosshair,
|
|
113
144
|
.l7-crosshair .l7-interactive,
|
|
114
145
|
.l7-crosshair .l7-interactive:active {
|
|
115
|
-
|
|
146
|
+
cursor: crosshair;
|
|
116
147
|
}
|
|
117
148
|
|
|
118
149
|
.l7-boxzoom {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
150
|
+
position: absolute;
|
|
151
|
+
top: 0;
|
|
152
|
+
left: 0;
|
|
153
|
+
width: 0;
|
|
154
|
+
height: 0;
|
|
155
|
+
background: #fff;
|
|
156
|
+
border: 2px dotted #202020;
|
|
157
|
+
opacity: 0.5;
|
|
158
|
+
z-index: 10;
|
|
128
159
|
}
|
|
129
160
|
`);
|
|
130
161
|
import LngLat from "./geo/lng_lat";
|
package/lib/css/l7.css
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
.l7-map {
|
|
2
|
-
font:
|
|
2
|
+
font:
|
|
3
|
+
12px/20px 'Helvetica Neue',
|
|
4
|
+
Arial,
|
|
5
|
+
Helvetica,
|
|
6
|
+
sans-serif;
|
|
3
7
|
overflow: hidden;
|
|
4
8
|
position: relative;
|
|
5
9
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -60,11 +64,27 @@
|
|
|
60
64
|
.l7-ctrl-top-left,
|
|
61
65
|
.l7-ctrl-top-right,
|
|
62
66
|
.l7-ctrl-bottom-left,
|
|
63
|
-
.l7-ctrl-bottom-right {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
.l7-ctrl-bottom-right {
|
|
68
|
+
position: absolute;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
z-index: 2;
|
|
71
|
+
}
|
|
72
|
+
.l7-ctrl-top-left {
|
|
73
|
+
top: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
}
|
|
76
|
+
.l7-ctrl-top-right {
|
|
77
|
+
top: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
}
|
|
80
|
+
.l7-ctrl-bottom-left {
|
|
81
|
+
bottom: 0;
|
|
82
|
+
left: 0;
|
|
83
|
+
}
|
|
84
|
+
.l7-ctrl-bottom-right {
|
|
85
|
+
right: 0;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
}
|
|
68
88
|
|
|
69
89
|
.l7-ctrl {
|
|
70
90
|
clear: both;
|
|
@@ -73,26 +93,37 @@
|
|
|
73
93
|
/* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */
|
|
74
94
|
transform: translate(0, 0);
|
|
75
95
|
}
|
|
76
|
-
.l7-ctrl-top-left .l7-ctrl
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
96
|
+
.l7-ctrl-top-left .l7-ctrl {
|
|
97
|
+
margin: 10px 0 0 10px;
|
|
98
|
+
float: left;
|
|
99
|
+
}
|
|
100
|
+
.l7-ctrl-top-right .l7-ctrl {
|
|
101
|
+
margin: 10px 10px 0 0;
|
|
102
|
+
float: right;
|
|
103
|
+
}
|
|
104
|
+
.l7-ctrl-bottom-left .l7-ctrl {
|
|
105
|
+
margin: 0 0 10px 10px;
|
|
106
|
+
float: left;
|
|
107
|
+
}
|
|
108
|
+
.l7-ctrl-bottom-right .l7-ctrl {
|
|
109
|
+
margin: 0 10px 10px 0;
|
|
110
|
+
float: right;
|
|
111
|
+
}
|
|
81
112
|
|
|
82
113
|
.l7-crosshair,
|
|
83
114
|
.l7-crosshair .l7-interactive,
|
|
84
115
|
.l7-crosshair .l7-interactive:active {
|
|
85
|
-
|
|
116
|
+
cursor: crosshair;
|
|
86
117
|
}
|
|
87
118
|
|
|
88
119
|
.l7-boxzoom {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: 0;
|
|
122
|
+
left: 0;
|
|
123
|
+
width: 0;
|
|
124
|
+
height: 0;
|
|
125
|
+
background: #fff;
|
|
126
|
+
border: 2px dotted #202020;
|
|
127
|
+
opacity: 0.5;
|
|
128
|
+
z-index: 10;
|
|
98
129
|
}
|
package/lib/earthmap.js
CHANGED
|
@@ -46,7 +46,11 @@ function loadStyles(css, doc) {
|
|
|
46
46
|
return style;
|
|
47
47
|
}
|
|
48
48
|
loadStyles(`.l7-map {
|
|
49
|
-
font:
|
|
49
|
+
font:
|
|
50
|
+
12px/20px 'Helvetica Neue',
|
|
51
|
+
Arial,
|
|
52
|
+
Helvetica,
|
|
53
|
+
sans-serif;
|
|
50
54
|
overflow: hidden;
|
|
51
55
|
position: relative;
|
|
52
56
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -103,11 +107,27 @@ loadStyles(`.l7-map {
|
|
|
103
107
|
.l7-ctrl-top-left,
|
|
104
108
|
.l7-ctrl-top-right,
|
|
105
109
|
.l7-ctrl-bottom-left,
|
|
106
|
-
.l7-ctrl-bottom-right {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
.l7-ctrl-bottom-right {
|
|
111
|
+
position: absolute;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
z-index: 2;
|
|
114
|
+
}
|
|
115
|
+
.l7-ctrl-top-left {
|
|
116
|
+
top: 0;
|
|
117
|
+
left: 0;
|
|
118
|
+
}
|
|
119
|
+
.l7-ctrl-top-right {
|
|
120
|
+
top: 0;
|
|
121
|
+
right: 0;
|
|
122
|
+
}
|
|
123
|
+
.l7-ctrl-bottom-left {
|
|
124
|
+
bottom: 0;
|
|
125
|
+
left: 0;
|
|
126
|
+
}
|
|
127
|
+
.l7-ctrl-bottom-right {
|
|
128
|
+
right: 0;
|
|
129
|
+
bottom: 0;
|
|
130
|
+
}
|
|
111
131
|
|
|
112
132
|
.l7-ctrl {
|
|
113
133
|
clear: both;
|
|
@@ -117,28 +137,39 @@ loadStyles(`.l7-map {
|
|
|
117
137
|
-webkit-transform: translate(0, 0);
|
|
118
138
|
transform: translate(0, 0);
|
|
119
139
|
}
|
|
120
|
-
.l7-ctrl-top-left .l7-ctrl
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
140
|
+
.l7-ctrl-top-left .l7-ctrl {
|
|
141
|
+
margin: 10px 0 0 10px;
|
|
142
|
+
float: left;
|
|
143
|
+
}
|
|
144
|
+
.l7-ctrl-top-right .l7-ctrl {
|
|
145
|
+
margin: 10px 10px 0 0;
|
|
146
|
+
float: right;
|
|
147
|
+
}
|
|
148
|
+
.l7-ctrl-bottom-left .l7-ctrl {
|
|
149
|
+
margin: 0 0 10px 10px;
|
|
150
|
+
float: left;
|
|
151
|
+
}
|
|
152
|
+
.l7-ctrl-bottom-right .l7-ctrl {
|
|
153
|
+
margin: 0 10px 10px 0;
|
|
154
|
+
float: right;
|
|
155
|
+
}
|
|
125
156
|
|
|
126
157
|
.l7-crosshair,
|
|
127
158
|
.l7-crosshair .l7-interactive,
|
|
128
159
|
.l7-crosshair .l7-interactive:active {
|
|
129
|
-
|
|
160
|
+
cursor: crosshair;
|
|
130
161
|
}
|
|
131
162
|
|
|
132
163
|
.l7-boxzoom {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
164
|
+
position: absolute;
|
|
165
|
+
top: 0;
|
|
166
|
+
left: 0;
|
|
167
|
+
width: 0;
|
|
168
|
+
height: 0;
|
|
169
|
+
background: #fff;
|
|
170
|
+
border: 2px dotted #202020;
|
|
171
|
+
opacity: 0.5;
|
|
172
|
+
z-index: 10;
|
|
142
173
|
}
|
|
143
174
|
`); // @ts-ignore
|
|
144
175
|
const defaultMinZoom = -2;
|
|
@@ -2,4 +2,4 @@ import TouchPanHandler from './touch_pan';
|
|
|
2
2
|
import TouchPitchHandler from './touch_pitch';
|
|
3
3
|
import TouchRotateHandler from './touch_rotate';
|
|
4
4
|
import TouchZoomHandler from './touch_zoom';
|
|
5
|
-
export { TouchPanHandler, TouchPitchHandler, TouchRotateHandler, TouchZoomHandler
|
|
5
|
+
export { TouchPanHandler, TouchPitchHandler, TouchRotateHandler, TouchZoomHandler };
|
package/lib/map.js
CHANGED
|
@@ -47,7 +47,11 @@ function loadStyles(css, doc) {
|
|
|
47
47
|
return style;
|
|
48
48
|
}
|
|
49
49
|
loadStyles(`.l7-map {
|
|
50
|
-
font:
|
|
50
|
+
font:
|
|
51
|
+
12px/20px 'Helvetica Neue',
|
|
52
|
+
Arial,
|
|
53
|
+
Helvetica,
|
|
54
|
+
sans-serif;
|
|
51
55
|
overflow: hidden;
|
|
52
56
|
position: relative;
|
|
53
57
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -104,11 +108,27 @@ loadStyles(`.l7-map {
|
|
|
104
108
|
.l7-ctrl-top-left,
|
|
105
109
|
.l7-ctrl-top-right,
|
|
106
110
|
.l7-ctrl-bottom-left,
|
|
107
|
-
.l7-ctrl-bottom-right {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
.l7-ctrl-bottom-right {
|
|
112
|
+
position: absolute;
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
z-index: 2;
|
|
115
|
+
}
|
|
116
|
+
.l7-ctrl-top-left {
|
|
117
|
+
top: 0;
|
|
118
|
+
left: 0;
|
|
119
|
+
}
|
|
120
|
+
.l7-ctrl-top-right {
|
|
121
|
+
top: 0;
|
|
122
|
+
right: 0;
|
|
123
|
+
}
|
|
124
|
+
.l7-ctrl-bottom-left {
|
|
125
|
+
bottom: 0;
|
|
126
|
+
left: 0;
|
|
127
|
+
}
|
|
128
|
+
.l7-ctrl-bottom-right {
|
|
129
|
+
right: 0;
|
|
130
|
+
bottom: 0;
|
|
131
|
+
}
|
|
112
132
|
|
|
113
133
|
.l7-ctrl {
|
|
114
134
|
clear: both;
|
|
@@ -118,28 +138,39 @@ loadStyles(`.l7-map {
|
|
|
118
138
|
-webkit-transform: translate(0, 0);
|
|
119
139
|
transform: translate(0, 0);
|
|
120
140
|
}
|
|
121
|
-
.l7-ctrl-top-left .l7-ctrl
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
141
|
+
.l7-ctrl-top-left .l7-ctrl {
|
|
142
|
+
margin: 10px 0 0 10px;
|
|
143
|
+
float: left;
|
|
144
|
+
}
|
|
145
|
+
.l7-ctrl-top-right .l7-ctrl {
|
|
146
|
+
margin: 10px 10px 0 0;
|
|
147
|
+
float: right;
|
|
148
|
+
}
|
|
149
|
+
.l7-ctrl-bottom-left .l7-ctrl {
|
|
150
|
+
margin: 0 0 10px 10px;
|
|
151
|
+
float: left;
|
|
152
|
+
}
|
|
153
|
+
.l7-ctrl-bottom-right .l7-ctrl {
|
|
154
|
+
margin: 0 10px 10px 0;
|
|
155
|
+
float: right;
|
|
156
|
+
}
|
|
126
157
|
|
|
127
158
|
.l7-crosshair,
|
|
128
159
|
.l7-crosshair .l7-interactive,
|
|
129
160
|
.l7-crosshair .l7-interactive:active {
|
|
130
|
-
|
|
161
|
+
cursor: crosshair;
|
|
131
162
|
}
|
|
132
163
|
|
|
133
164
|
.l7-boxzoom {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
165
|
+
position: absolute;
|
|
166
|
+
top: 0;
|
|
167
|
+
left: 0;
|
|
168
|
+
width: 0;
|
|
169
|
+
height: 0;
|
|
170
|
+
background: #fff;
|
|
171
|
+
border: 2px dotted #202020;
|
|
172
|
+
opacity: 0.5;
|
|
173
|
+
z-index: 10;
|
|
143
174
|
}
|
|
144
175
|
`); // @ts-ignore
|
|
145
176
|
(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-map",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.4-beta.0",
|
|
4
4
|
"description": "L7 Map",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/antvis/L7#readme",
|
|
@@ -21,25 +21,23 @@
|
|
|
21
21
|
"lib",
|
|
22
22
|
"es"
|
|
23
23
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"dev": "father dev",
|
|
26
|
-
"build": "npm run clean && father build",
|
|
27
|
-
"check-deps": "father doctor",
|
|
28
|
-
"lint": "eslint src __tests__",
|
|
29
|
-
"clean": "rimraf dist es lib",
|
|
30
|
-
"sync": "tnpm sync"
|
|
31
|
-
},
|
|
32
24
|
"dependencies": {
|
|
33
|
-
"@antv/l7-utils": "^2.21.2",
|
|
34
25
|
"@babel/runtime": "^7.7.7",
|
|
35
26
|
"@mapbox/point-geometry": "^0.1.0",
|
|
36
27
|
"@mapbox/unitbezier": "^0.0.0",
|
|
37
28
|
"eventemitter3": "^4.0.4",
|
|
38
29
|
"gl-matrix": "^3.1.0",
|
|
39
|
-
"
|
|
30
|
+
"@antv/l7-utils": "2.21.4-beta.0"
|
|
40
31
|
},
|
|
41
32
|
"publishConfig": {
|
|
42
|
-
"access": "public"
|
|
33
|
+
"access": "public",
|
|
34
|
+
"registry": "https://registry.npmjs.org"
|
|
43
35
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
36
|
+
"scripts": {
|
|
37
|
+
"dev": "father dev",
|
|
38
|
+
"build": "npm run clean && father build",
|
|
39
|
+
"check-deps": "father doctor",
|
|
40
|
+
"lint": "eslint src __tests__",
|
|
41
|
+
"clean": "rimraf dist es lib"
|
|
42
|
+
}
|
|
43
|
+
}
|