@vtx/map 1.2.38 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/lib/VtxMap/AMap/AMap.js +37 -35
- package/lib/VtxMap/AMap/AMap.js.map +1 -1
- package/lib/VtxMap/BMap/Map.js +60 -57
- package/lib/VtxMap/BMap/Map.js.map +1 -1
- package/lib/VtxMap/GMap/Map.js +38 -39
- package/lib/VtxMap/GMap/Map.js.map +1 -1
- package/lib/VtxMap/MapToolFunction.js +0 -9
- package/lib/VtxMap/MapToolFunction.js.map +1 -1
- package/lib/VtxMap/OMap/Map.js +65 -62
- package/lib/VtxMap/OMap/Map.js.map +1 -1
- package/lib/VtxMap/OMap/Map.less +70 -70
- package/lib/VtxMap/OlMap/Map.js +77 -101
- package/lib/VtxMap/OlMap/Map.js.map +1 -1
- package/lib/VtxMap/OlMap/Map.less +230 -230
- package/lib/VtxMap/TMap/TMap.js +58 -56
- package/lib/VtxMap/TMap/TMap.js.map +1 -1
- package/lib/VtxMap/index.js +0 -18
- package/lib/VtxMap/index.js.map +1 -1
- package/lib/VtxMap/optimizingPointMap.js +21 -23
- package/lib/VtxMap/optimizingPointMap.js.map +1 -1
- package/lib/VtxModal/VtxModal.css +76 -18
- package/lib/VtxModal/VtxModal.js +16 -13
- package/lib/VtxModal/VtxModal.js.map +1 -1
- package/lib/VtxModal/VtxModal.less +117 -50
- package/lib/VtxModal/style/css.js +1 -12
- package/lib/VtxModal/style/css.js.map +1 -1
- package/lib/VtxModal/style/index.js +1 -12
- package/lib/VtxModal/style/index.js.map +1 -1
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.css +45 -63
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js +35 -36
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js.map +1 -1
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.less +73 -68
- package/lib/VtxSearchCheckMap/index.js.map +1 -1
- package/lib/VtxSearchCheckMap/mapping.js.map +1 -1
- package/lib/VtxSearchCheckMap/style/css.js +2 -18
- package/lib/VtxSearchCheckMap/style/css.js.map +1 -1
- package/lib/VtxSearchCheckMap/style/index.js +2 -18
- package/lib/VtxSearchCheckMap/style/index.js.map +1 -1
- package/lib/VtxSearchMap/VtxSearchMap.css +44 -60
- package/lib/VtxSearchMap/VtxSearchMap.js +59 -68
- package/lib/VtxSearchMap/VtxSearchMap.js.map +1 -1
- package/lib/VtxSearchMap/VtxSearchMap.less +156 -174
- package/lib/VtxSearchMap/index.js.map +1 -1
- package/lib/VtxSearchMap/mapping.js.map +1 -1
- package/lib/VtxSearchMap/style/css.js +3 -25
- package/lib/VtxSearchMap/style/css.js.map +1 -1
- package/lib/VtxSearchMap/style/index.js +3 -25
- package/lib/VtxSearchMap/style/index.js.map +1 -1
- package/lib/default.js +37 -13
- package/lib/default.js.map +1 -1
- package/lib/utils/util.js +0 -53
- package/lib/utils/util.js.map +1 -1
- package/package.json +67 -65
- package/lib/VtxModal/VtxModalAntd3.css +0 -62
- package/lib/VtxModal/VtxModalAntd3.less +0 -67
- package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.css +0 -0
- package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.less +0 -1
- package/lib/VtxSearchMap/VtxSearchMapAntd3.css +0 -0
- package/lib/VtxSearchMap/VtxSearchMapAntd3.less +0 -1
|
@@ -1,208 +1,190 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
.vtx-ui-searchmap-searchmodal{
|
|
1
|
+
.vtx-ui-searchmap-searchmodal {
|
|
4
2
|
z-index: 1001;
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
.ant-modal {
|
|
10
|
+
width: calc(100% - 200px) !important;
|
|
7
11
|
min-width: 800px;
|
|
8
12
|
height: 70vh;
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
|
|
14
|
+
.ant-modal-title {
|
|
15
|
+
color: var(--ant-color-primary);
|
|
11
16
|
}
|
|
12
|
-
|
|
17
|
+
|
|
18
|
+
.ant-modal-body {
|
|
13
19
|
width: 100%;
|
|
14
|
-
height: 100
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
height: e('calc(100% - 108px)') !important;
|
|
18
|
-
padding: 0px;
|
|
19
|
-
background-color: @body-background;
|
|
20
|
-
}
|
|
20
|
+
height: calc(100% - 108px) !important;
|
|
21
|
+
padding: 0px;
|
|
22
|
+
background-color: var(--ant-color-bg-container);
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
|
-
|
|
25
|
+
|
|
26
|
+
.vtx-ui-searchmap-searchmap {
|
|
24
27
|
width: 100%;
|
|
25
28
|
height: 100%;
|
|
26
29
|
padding-top: 48px;
|
|
27
|
-
// padding-bottom: 48px;
|
|
28
30
|
box-sizing: border-box;
|
|
29
31
|
position: relative;
|
|
30
32
|
overflow: hidden;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.vtx-ui-searchmap-top,
|
|
36
|
+
.vtx-ui-searchmap-bottom {
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 48px;
|
|
39
|
+
position: absolute;
|
|
40
|
+
left: 0px;
|
|
41
|
+
padding: 10px 15px;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
|
|
44
|
+
button {
|
|
45
|
+
margin-left: 10px;
|
|
40
46
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.vtx-ui-searchmap-top {
|
|
50
|
+
top: 0px;
|
|
51
|
+
border-bottom: 1px solid var(--ant-color-border);
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
flex-wrap: nowrap;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
|
|
58
|
+
.vtx-ui-searchmap-top-right {
|
|
44
59
|
display: flex;
|
|
45
60
|
align-items: center;
|
|
46
|
-
justify-content:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
display: flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
justify-content: flex-end;
|
|
53
|
-
div+div {
|
|
54
|
-
margin-left: 8px;
|
|
55
|
-
}
|
|
61
|
+
justify-content: flex-end;
|
|
62
|
+
|
|
63
|
+
div+div {
|
|
64
|
+
margin-left: 8px;
|
|
56
65
|
}
|
|
57
|
-
// .vtx-ui-searchmap-othermodal{
|
|
58
|
-
// position: absolute;
|
|
59
|
-
// right: 25px;
|
|
60
|
-
// line-height: 28px;
|
|
61
|
-
// width: 100px;
|
|
62
|
-
// display: inline-block;
|
|
63
|
-
// background: #fff;
|
|
64
|
-
// text-align: center;
|
|
65
|
-
// border-radius: 5px;
|
|
66
|
-
// }
|
|
67
|
-
// .vtx-ui-searchmap-mapTxt{
|
|
68
|
-
// position: absolute;
|
|
69
|
-
// right: 25px;
|
|
70
|
-
// line-height: 28px;
|
|
71
|
-
// display: inline-block;
|
|
72
|
-
// width: 100px;
|
|
73
|
-
// background-color: #fff;
|
|
74
|
-
// border-radius: 5px;
|
|
75
|
-
// text-align: center;
|
|
76
|
-
// cursor: pointer;
|
|
77
|
-
// }
|
|
78
|
-
}
|
|
79
|
-
.vtx-ui-searchmap-bottom{
|
|
80
|
-
bottom: 0px;
|
|
81
|
-
border-top: 1px solid @border-color-base;
|
|
82
|
-
text-align: right;
|
|
83
66
|
}
|
|
84
|
-
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.vtx-ui-searchmap-bottom {
|
|
70
|
+
bottom: 0px;
|
|
71
|
+
border-top: 1px solid var(--ant-color-border);
|
|
72
|
+
text-align: right;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.vtx-ui-searchmap-content {
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
position: relative;
|
|
79
|
+
padding-left: 25px;
|
|
80
|
+
|
|
81
|
+
.vtx-ui-searchmap-show {
|
|
82
|
+
display: inline-block;
|
|
85
83
|
width: 100%;
|
|
86
84
|
height: 100%;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.vtx-ui-searchmap-hidden {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.vtx-ui-searchmap-w_l {
|
|
92
|
+
width: 300px !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.vtx-ui-searchmap-content_left {
|
|
96
|
+
width: 25px;
|
|
97
|
+
height: 100%;
|
|
98
|
+
display: inline-block;
|
|
99
|
+
-webkit-transition-duration: 0.3s;
|
|
100
|
+
-o-transition-duration: 0.3s;
|
|
101
|
+
transition-duration: 0.3s;
|
|
102
|
+
transition-property: width;
|
|
103
|
+
vertical-align: top;
|
|
104
|
+
border-right: 1px solid var(--ant-color-border);
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0px;
|
|
107
|
+
left: 0px;
|
|
108
|
+
z-index: 10;
|
|
109
|
+
background-color: var(--ant-color-bg-container);
|
|
110
|
+
|
|
111
|
+
.vtx-ui-searchmap-listtitle {
|
|
91
112
|
width: 100%;
|
|
92
|
-
height:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
vertical-align: top;
|
|
109
|
-
border-right: 1px solid @border-color-base;
|
|
110
|
-
position: absolute;
|
|
111
|
-
top: 0px;
|
|
112
|
-
left: 0px;
|
|
113
|
-
z-index: 10;
|
|
114
|
-
background-color: @body-background;
|
|
115
|
-
.vtx-ui-searchmap-listtitle{
|
|
116
|
-
width: 100%;
|
|
113
|
+
height: 30px;
|
|
114
|
+
line-height: 30px;
|
|
115
|
+
border-bottom: 1px solid var(--ant-color-border);
|
|
116
|
+
|
|
117
|
+
.vtx-ui-searchmap-title {
|
|
118
|
+
width: calc(100% - 30px);
|
|
119
|
+
display: inline-block;
|
|
120
|
+
padding-left: 15px;
|
|
121
|
+
font-size: 15px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.vtx-ui-searchmap-btn {
|
|
125
|
+
display: inline-block;
|
|
126
|
+
width: 30px;
|
|
127
|
+
text-align: center;
|
|
128
|
+
color: var(--ant-color-primary);
|
|
117
129
|
height: 30px;
|
|
118
130
|
line-height: 30px;
|
|
119
|
-
border-bottom: 1px solid @border-color-base;;
|
|
120
|
-
.vtx-ui-searchmap-title{
|
|
121
|
-
width: e('calc(100% - 30px)');
|
|
122
|
-
display: inline-block;
|
|
123
|
-
padding-left: 15px;
|
|
124
|
-
font-size: 15px;
|
|
125
|
-
}
|
|
126
|
-
.vtx-ui-searchmap-btn{
|
|
127
|
-
display: inline-block;
|
|
128
|
-
width: 30px;
|
|
129
|
-
text-align: center;
|
|
130
|
-
color: @primary-color;
|
|
131
|
-
height: 30px;
|
|
132
|
-
line-height: 30px;
|
|
133
|
-
cursor: pointer;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
.vtx-ui-searchmap-lists{
|
|
137
|
-
width: 100%;
|
|
138
|
-
line-height: 35px;
|
|
139
|
-
border-bottom: 1px solid @border-color-base;;
|
|
140
|
-
font-size: 12px;
|
|
141
|
-
overflow: hidden;
|
|
142
|
-
text-overflow: ellipsis;
|
|
143
|
-
white-space: nowrap;
|
|
144
|
-
padding:0px 15px;
|
|
145
131
|
cursor: pointer;
|
|
146
|
-
color: #999;
|
|
147
|
-
&:hover{
|
|
148
|
-
background-color: #ECF6FD;
|
|
149
|
-
color: @primary-color;
|
|
150
|
-
}
|
|
151
132
|
}
|
|
152
|
-
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.vtx-ui-searchmap-lists {
|
|
136
|
+
width: 100%;
|
|
137
|
+
line-height: 35px;
|
|
138
|
+
border-bottom: 1px solid var(--ant-color-border);
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
text-overflow: ellipsis;
|
|
142
|
+
white-space: nowrap;
|
|
143
|
+
padding: 0px 15px;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
color: #999;
|
|
146
|
+
|
|
147
|
+
&:hover {
|
|
153
148
|
background-color: #ECF6FD;
|
|
154
|
-
color:
|
|
155
|
-
}
|
|
156
|
-
.vtx-ui-searchmap-scrollauto{
|
|
157
|
-
height: e('calc(100% - 30px)');
|
|
158
|
-
overflow-y: auto;
|
|
149
|
+
color: var(--ant-color-primary);
|
|
159
150
|
}
|
|
160
151
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
-webkit-transition-duration: 0.3s;
|
|
166
|
-
-o-transition-duration: 0.3s;
|
|
167
|
-
transition-duration: 0.3s;
|
|
168
|
-
transition-property: width;
|
|
152
|
+
|
|
153
|
+
.vtx-ui-searchmap-lists.vtx-ui-searchmap-select {
|
|
154
|
+
background-color: #ECF6FD;
|
|
155
|
+
color: var(--ant-color-primary);
|
|
169
156
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
line-height: 30px;
|
|
175
|
-
cursor: pointer;
|
|
157
|
+
|
|
158
|
+
.vtx-ui-searchmap-scrollauto {
|
|
159
|
+
height: calc(100% - 30px);
|
|
160
|
+
overflow-y: auto;
|
|
176
161
|
}
|
|
177
162
|
}
|
|
163
|
+
|
|
164
|
+
.vtx-ui-searchmap-content_right {
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
display: inline-block;
|
|
168
|
+
-webkit-transition-duration: 0.3s;
|
|
169
|
+
-o-transition-duration: 0.3s;
|
|
170
|
+
transition-duration: 0.3s;
|
|
171
|
+
transition-property: width;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.vtx-ui-searchmap-btn {
|
|
175
|
+
text-align: center;
|
|
176
|
+
color: var(--ant-color-primary);
|
|
177
|
+
height: 30px;
|
|
178
|
+
line-height: 30px;
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
}
|
|
178
181
|
}
|
|
179
|
-
|
|
180
|
-
.vtx-ui-searchmap-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
left: -38px;
|
|
187
|
-
background-color: #222020;
|
|
188
|
-
opacity: 0.6;
|
|
189
|
-
border-radius: 5px;
|
|
190
|
-
color: #FFF;
|
|
191
|
-
padding: 2px 8px;
|
|
192
|
-
text-overflow: ellipsis;
|
|
193
|
-
white-space: nowrap;
|
|
194
|
-
word-break: normal;
|
|
195
|
-
overflow: hidden;
|
|
196
|
-
}
|
|
197
|
-
.vtx-ui-searchmap-hiddenlabel{
|
|
198
|
-
display: none;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.vtx-ui-searchmap-bottom{
|
|
202
|
-
display: flex;
|
|
203
|
-
align-items: center;
|
|
204
|
-
justify-content: space-between;
|
|
205
|
-
.vtx-ui-searchmap-address {
|
|
206
|
-
|
|
182
|
+
|
|
183
|
+
.vtx-ui-searchmap-bottom {
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
justify-content: space-between;
|
|
187
|
+
|
|
188
|
+
.vtx-ui-searchmap-address {}
|
|
207
189
|
}
|
|
208
190
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_VtxSearchMap","_interopRequireDefault","require","e","__esModule"],"sources":["VtxSearchMap/index.js"],"sourcesContent":["export {default as VtxSearchMap} from './VtxSearchMap';\
|
|
1
|
+
{"version":3,"file":"index.js","names":["_VtxSearchMap","_interopRequireDefault","require","e","__esModule"],"sources":["VtxSearchMap/index.js"],"sourcesContent":["export {default as VtxSearchMap} from './VtxSearchMap';\nexport {default} from './VtxSearchMap';"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuD,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","names":["iconMapping","exports","check","close","search","environment","edit","sync"],"sources":["VtxSearchMap/mapping.js"],"sourcesContent":["export const iconMapping = {\
|
|
1
|
+
{"version":3,"file":"mapping.js","names":["iconMapping","exports","check","close","search","environment","edit","sync"],"sources":["VtxSearchMap/mapping.js"],"sourcesContent":["export const iconMapping = {\n check: 'check',\n close: 'close',\n search: 'search1',\n environment: 'location',\n edit: 'edit',\n sync: 'sync',\n 'double-left': 'doubleleft',\n 'double-right': 'doubleright',\n};\n"],"mappings":";;;;;;AAAO,IAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACvBE,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE,OAAO;EACdC,MAAM,EAAE,SAAS;EACjBC,WAAW,EAAE,UAAU;EACvBC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,MAAM;EACZ,aAAa,EAAE,YAAY;EAC3B,cAAc,EAAE;AACpB,CAAC","ignoreList":[]}
|
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("
|
|
4
|
-
require("
|
|
5
|
-
require("
|
|
6
|
-
require("antd/lib/icon/style/css");
|
|
7
|
-
require("antd/lib/checkbox/style/css");
|
|
8
|
-
require("../../VtxMap/AMap/AMap.css");
|
|
9
|
-
require("../../VtxMap/BMap/Map.css");
|
|
10
|
-
require("../../VtxMap/GMap/Map.css");
|
|
11
|
-
require("../../VtxMap/OMap/Map.css");
|
|
12
|
-
require("../../VtxMap/TMap/TMap.css");
|
|
13
|
-
require("../../VtxMap/OlMap/Map.css");
|
|
14
|
-
require("../../VtxMap/Map.css");
|
|
15
|
-
var _default = require("../../default");
|
|
16
|
-
switch (_default.antdMajorVersion) {
|
|
17
|
-
case '4':
|
|
18
|
-
require('../../VtxModal/VtxModal.css');
|
|
19
|
-
require('../VtxSearchMap.css');
|
|
20
|
-
break;
|
|
21
|
-
case '3':
|
|
22
|
-
require('../../VtxModal/VtxModalAntd3.css');
|
|
23
|
-
require('../VtxSearchMapAntd3.css');
|
|
24
|
-
break;
|
|
25
|
-
default:
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
3
|
+
require("../../VtxMap/style/css");
|
|
4
|
+
require("../../VtxModal/style/css");
|
|
5
|
+
require("../VtxSearchMap.css");
|
|
28
6
|
//# sourceMappingURL=css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":["require"
|
|
1
|
+
{"version":3,"file":"css.js","names":["require"],"sources":["VtxSearchMap/style/index.js"],"sourcesContent":["import '../../VtxMap/style';\r\nimport '../../VtxModal/style';\r\n\r\nimport '../VtxSearchMap.less';\r\n"],"mappings":";;AAAAA,OAAA;AACAA,OAAA;AAEAA,OAAA","ignoreList":[]}
|
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("
|
|
4
|
-
require("
|
|
5
|
-
require("
|
|
6
|
-
require("antd/lib/icon/style");
|
|
7
|
-
require("antd/lib/checkbox/style");
|
|
8
|
-
require("../../VtxMap/AMap/AMap.less");
|
|
9
|
-
require("../../VtxMap/BMap/Map.less");
|
|
10
|
-
require("../../VtxMap/GMap/Map.less");
|
|
11
|
-
require("../../VtxMap/OMap/Map.less");
|
|
12
|
-
require("../../VtxMap/TMap/TMap.less");
|
|
13
|
-
require("../../VtxMap/OlMap/Map.less");
|
|
14
|
-
require("../../VtxMap/Map.less");
|
|
15
|
-
var _default = require("../../default");
|
|
16
|
-
switch (_default.antdMajorVersion) {
|
|
17
|
-
case '4':
|
|
18
|
-
require('../../VtxModal/VtxModal.less');
|
|
19
|
-
require('../VtxSearchMap.less');
|
|
20
|
-
break;
|
|
21
|
-
case '3':
|
|
22
|
-
require('../../VtxModal/VtxModalAntd3.less');
|
|
23
|
-
require('../VtxSearchMapAntd3.less');
|
|
24
|
-
break;
|
|
25
|
-
default:
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
3
|
+
require("../../VtxMap/style");
|
|
4
|
+
require("../../VtxModal/style");
|
|
5
|
+
require("../VtxSearchMap.less");
|
|
28
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["require"
|
|
1
|
+
{"version":3,"file":"index.js","names":["require"],"sources":["VtxSearchMap/style/index.js"],"sourcesContent":["import '../../VtxMap/style';\r\nimport '../../VtxModal/style';\r\n\r\nimport '../VtxSearchMap.less';\r\n"],"mappings":";;AAAAA,OAAA;AACAA,OAAA;AAEAA,OAAA","ignoreList":[]}
|
package/lib/default.js
CHANGED
|
@@ -3,18 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.VtxMapIcon = void 0;
|
|
7
|
+
exports.ensurejQuery = ensurejQuery;
|
|
7
8
|
exports.getTMapTK = getTMapTK;
|
|
8
|
-
|
|
9
|
-
var createFromIconfontCN;
|
|
10
|
-
var antdMajorVersion = exports.antdMajorVersion = _package.version.substring(0, 1);
|
|
11
|
-
|
|
12
|
-
// 必须是3.9.0之后的版本
|
|
13
|
-
if (antdMajorVersion === '3') {
|
|
14
|
-
createFromIconfontCN = require('antd/lib/icon')["default"].createFromIconfontCN;
|
|
15
|
-
} else if (antdMajorVersion === '4') {
|
|
16
|
-
createFromIconfontCN = require('@ant-design/icons').createFromIconfontCN;
|
|
17
|
-
}
|
|
9
|
+
exports.loadScript = loadScript;
|
|
10
|
+
var createFromIconfontCN = require('@ant-design/icons').createFromIconfontCN;
|
|
18
11
|
var globalCfg = window.VtxPublicServiceAddress || {};
|
|
19
12
|
var VtxMapIcon = exports.VtxMapIcon = createFromIconfontCN({
|
|
20
13
|
// scriptUrl: '//at.alicdn.com/t/font_2865072_vy1sa1whz3l.js',
|
|
@@ -24,7 +17,7 @@ window._BMapSecurityConfig = {
|
|
|
24
17
|
// 代理服务器地址
|
|
25
18
|
serviceHost: '/_BMapService/'
|
|
26
19
|
};
|
|
27
|
-
var
|
|
20
|
+
var configUrl = {
|
|
28
21
|
// 百度地图资源请求地址
|
|
29
22
|
bmapScriptUrl: globalCfg.bmapScriptUrl ? globalCfg.bmapScriptUrl : '/_BMapService/getscript?v=3.0',
|
|
30
23
|
// 高德地图资源请求地址
|
|
@@ -36,7 +29,8 @@ var _default = exports["default"] = {
|
|
|
36
29
|
//arcgis地图服务ip
|
|
37
30
|
arcgisServerURL: globalCfg.arcgisServerURL ? globalCfg.arcgisServerURL : '//vortexplugin.cloudhw.cn/gis',
|
|
38
31
|
//openlayer地图服务ip
|
|
39
|
-
openlayerServerURL: globalCfg.openlayerServerURL ? globalCfg.openlayerServerURL : '//vortexplugin.cloudhw.cn/openlayer'
|
|
32
|
+
openlayerServerURL: globalCfg.openlayerServerURL ? globalCfg.openlayerServerURL : '//vortexplugin.cloudhw.cn/openlayer',
|
|
33
|
+
jqueryScriptUrl: globalCfg.jqueryScriptUrl ? globalCfg.jqueryScriptUrl : "https://vortexplugin.cloudhw.cn/jquery/jquery.min.js"
|
|
40
34
|
};
|
|
41
35
|
function getTMapTK() {
|
|
42
36
|
if (window.TMapTK) {
|
|
@@ -46,4 +40,34 @@ function getTMapTK() {
|
|
|
46
40
|
return tks[Math.floor(Math.random() * 3)];
|
|
47
41
|
}
|
|
48
42
|
}
|
|
43
|
+
function loadScript(url, callback) {
|
|
44
|
+
var script = document.createElement('script');
|
|
45
|
+
script.type = 'text/javascript';
|
|
46
|
+
if (script.readyState) {
|
|
47
|
+
//IE
|
|
48
|
+
script.onreadystatechange = function () {
|
|
49
|
+
if (script.readyState == 'loaded' || script.readyState == 'complete') {
|
|
50
|
+
script.onreadystatechange = null;
|
|
51
|
+
callback && callback();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
} else {
|
|
55
|
+
//Others
|
|
56
|
+
script.onload = function () {
|
|
57
|
+
callback();
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
script.src = url;
|
|
61
|
+
document.body.appendChild(script);
|
|
62
|
+
}
|
|
63
|
+
function ensurejQuery() {
|
|
64
|
+
return new Promise(function (resolve) {
|
|
65
|
+
if (window.$) {
|
|
66
|
+
resolve();
|
|
67
|
+
} else {
|
|
68
|
+
loadScript(configUrl.jqueryScriptUrl, resolve);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
var _default = exports["default"] = configUrl;
|
|
49
73
|
//# sourceMappingURL=default.js.map
|
package/lib/default.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.js","names":["
|
|
1
|
+
{"version":3,"file":"default.js","names":["createFromIconfontCN","require","globalCfg","window","VtxPublicServiceAddress","VtxMapIcon","exports","scriptUrl","concat","mapServerURL","_BMapSecurityConfig","serviceHost","configUrl","bmapScriptUrl","amapScriptUrl","tmapScriptUrl","getTMapTK","arcgisServerURL","openlayerServerURL","jqueryScriptUrl","TMapTK","tks","Math","floor","random","loadScript","url","callback","script","document","createElement","type","readyState","onreadystatechange","onload","src","body","appendChild","ensurejQuery","Promise","resolve","$","_default"],"sources":["default.js"],"sourcesContent":["\r\nlet createFromIconfontCN = require('@ant-design/icons').createFromIconfontCN;\r\n\r\nconst globalCfg = window.VtxPublicServiceAddress || {};\r\n\r\nexport const VtxMapIcon = createFromIconfontCN({\r\n // scriptUrl: '//at.alicdn.com/t/font_2865072_vy1sa1whz3l.js',\r\n scriptUrl: `${globalCfg.mapServerURL || '//vortexplugin.cloudhw.cn/mapplugin'}/icon_font.js`,\r\n});\r\nwindow._BMapSecurityConfig = {\r\n // 代理服务器地址\r\n serviceHost: '/_BMapService/'\r\n}\r\n const configUrl = {\r\n // 百度地图资源请求地址\r\n bmapScriptUrl: globalCfg.bmapScriptUrl\r\n ? globalCfg.bmapScriptUrl\r\n : '/_BMapService/getscript?v=3.0',\r\n // 高德地图资源请求地址\r\n amapScriptUrl: globalCfg.amapScriptUrl\r\n ? globalCfg.amapScriptUrl\r\n : '//webapi.amap.com/maps?v=1.4.14&key=e59ef9272e3788ac59d9a22f0f8cf9fe&plugin=AMap.Geolocation,AMap.MarkerClusterer,AMap.MapType,AMap.Scale,AMap.ToolBar,AMap.DistrictSearch,AMap.RangingTool,AMap.MouseTool,AMap.PolyEditor,AMap.CircleEditor,AMap.PlaceSearch,AMap.Heatmap',\r\n // 天地图资源请求地址\r\n tmapScriptUrl: globalCfg.tmapScriptUrl\r\n ? globalCfg.tmapScriptUrl\r\n : `//api.tianditu.gov.cn/api?v=4.0&tk=${getTMapTK()}`,\r\n //地图服务地址ip\r\n mapServerURL: globalCfg.mapServerURL\r\n ? globalCfg.mapServerURL\r\n : '//vortexplugin.cloudhw.cn/mapplugin',\r\n //arcgis地图服务ip\r\n arcgisServerURL: globalCfg.arcgisServerURL\r\n ? globalCfg.arcgisServerURL\r\n : '//vortexplugin.cloudhw.cn/gis',\r\n //openlayer地图服务ip\r\n openlayerServerURL: globalCfg.openlayerServerURL\r\n ? globalCfg.openlayerServerURL\r\n : '//vortexplugin.cloudhw.cn/openlayer',\r\n jqueryScriptUrl: globalCfg.jqueryScriptUrl\r\n ? globalCfg.jqueryScriptUrl\r\n : \"https://vortexplugin.cloudhw.cn/jquery/jquery.min.js\",\r\n};\r\n\r\nexport function getTMapTK() {\r\n if (window.TMapTK) {\r\n return window.TMapTK;\r\n } else {\r\n const tks = [\r\n 'b95ec6e55998a6408862ab2ac36c4950',\r\n '0e3608ea5e57ac901f1e14e653818910',\r\n '55bbbfecae274ce7de92579f15a5fbad',\r\n ];\r\n return tks[Math.floor(Math.random() * 3)];\r\n }\r\n}\r\nexport function loadScript(url, callback) {\r\n var script = document.createElement('script');\r\n script.type = 'text/javascript';\r\n if (script.readyState) {\r\n //IE\r\n script.onreadystatechange = function() {\r\n if (script.readyState == 'loaded' || script.readyState == 'complete') {\r\n script.onreadystatechange = null;\r\n callback && callback();\r\n }\r\n };\r\n } else {\r\n //Others\r\n script.onload = function() {\r\n callback();\r\n };\r\n }\r\n script.src = url;\r\n document.body.appendChild(script);\r\n}\r\n\r\n\r\nexport function ensurejQuery(){\r\n return new Promise((resolve) => {\r\n if (window.$) {\r\n resolve();\r\n } else {\r\n loadScript(configUrl.jqueryScriptUrl, resolve);\r\n }\r\n });\r\n}\r\n\r\nexport default configUrl"],"mappings":";;;;;;;;;AACA,IAAIA,oBAAoB,GAAGC,OAAO,CAAC,mBAAmB,CAAC,CAACD,oBAAoB;AAE5E,IAAME,SAAS,GAAGC,MAAM,CAACC,uBAAuB,IAAI,CAAC,CAAC;AAE/C,IAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAGL,oBAAoB,CAAC;EAC3C;EACAO,SAAS,KAAAC,MAAA,CAAKN,SAAS,CAACO,YAAY,IAAI,qCAAqC;AACjF,CAAC,CAAC;AACFN,MAAM,CAACO,mBAAmB,GAAG;EACzB;EACAC,WAAW,EAAE;AACjB,CAAC;AACA,IAAMC,SAAS,GAAG;EACf;EACAC,aAAa,EAAEX,SAAS,CAACW,aAAa,GAChCX,SAAS,CAACW,aAAa,GACvB,+BAA+B;EACrC;EACAC,aAAa,EAAEZ,SAAS,CAACY,aAAa,GAChCZ,SAAS,CAACY,aAAa,GACvB,4QAA4Q;EAClR;EACAC,aAAa,EAAEb,SAAS,CAACa,aAAa,GAChCb,SAAS,CAACa,aAAa,yCAAAP,MAAA,CACeQ,SAAS,CAAC,CAAC,CAAE;EACzD;EACAP,YAAY,EAAEP,SAAS,CAACO,YAAY,GAC9BP,SAAS,CAACO,YAAY,GACtB,qCAAqC;EAC3C;EACAQ,eAAe,EAAEf,SAAS,CAACe,eAAe,GACpCf,SAAS,CAACe,eAAe,GACzB,+BAA+B;EACrC;EACAC,kBAAkB,EAAEhB,SAAS,CAACgB,kBAAkB,GAC1ChB,SAAS,CAACgB,kBAAkB,GAC5B,qCAAqC;EAC7CC,eAAe,EAAEjB,SAAS,CAACiB,eAAe,GACtCjB,SAAS,CAACiB,eAAe,GACzB;AACN,CAAC;AAEM,SAASH,SAASA,CAAA,EAAG;EACxB,IAAIb,MAAM,CAACiB,MAAM,EAAE;IACf,OAAOjB,MAAM,CAACiB,MAAM;EACxB,CAAC,MAAM;IACH,IAAMC,GAAG,GAAG,CACR,kCAAkC,EAClC,kCAAkC,EAClC,kCAAkC,CACrC;IACD,OAAOA,GAAG,CAACC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;EAC7C;AACJ;AACO,SAASC,UAAUA,CAACC,GAAG,EAAEC,QAAQ,EAAE;EACxC,IAAIC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,QAAQ,CAAC;EAC7CF,MAAM,CAACG,IAAI,GAAG,iBAAiB;EAC/B,IAAIH,MAAM,CAACI,UAAU,EAAE;IACrB;IACAJ,MAAM,CAACK,kBAAkB,GAAG,YAAW;MACrC,IAAIL,MAAM,CAACI,UAAU,IAAI,QAAQ,IAAIJ,MAAM,CAACI,UAAU,IAAI,UAAU,EAAE;QACpEJ,MAAM,CAACK,kBAAkB,GAAG,IAAI;QAChCN,QAAQ,IAAIA,QAAQ,CAAC,CAAC;MACxB;IACF,CAAC;EACH,CAAC,MAAM;IACL;IACAC,MAAM,CAACM,MAAM,GAAG,YAAW;MACzBP,QAAQ,CAAC,CAAC;IACZ,CAAC;EACH;EACAC,MAAM,CAACO,GAAG,GAAGT,GAAG;EAChBG,QAAQ,CAACO,IAAI,CAACC,WAAW,CAACT,MAAM,CAAC;AACnC;AAGO,SAASU,YAAYA,CAAA,EAAE;EAC5B,OAAO,IAAIC,OAAO,CAAC,UAACC,OAAO,EAAK;IAC5B,IAAIrC,MAAM,CAACsC,CAAC,EAAE;MACZD,OAAO,CAAC,CAAC;IACX,CAAC,MAAM;MACLf,UAAU,CAACb,SAAS,CAACO,eAAe,EAAEqB,OAAO,CAAC;IAChD;EACF,CAAC,CAAC;AACN;AAAC,IAAAE,QAAA,GAAApC,OAAA,cAEcM,SAAS","ignoreList":[]}
|
package/lib/utils/util.js
CHANGED
|
@@ -6,17 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getToken = exports.MapTypeEnum = void 0;
|
|
7
7
|
exports.transform = transform;
|
|
8
8
|
exports.transformGCJ2ToBD = transformGCJ2ToBD;
|
|
9
|
-
exports.transformGCJ2ToCGCS2000 = transformGCJ2ToCGCS2000;
|
|
10
9
|
exports.transformGCJ2ToWGS = transformGCJ2ToWGS;
|
|
11
|
-
var _proj = _interopRequireDefault(require("proj4"));
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
15
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
17
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
19
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
20
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
13
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -78,57 +69,13 @@ function transformLon(x, y) {
|
|
|
78
69
|
ret += (150.0 * Math.sin(x / 12.0 * PI) + 300.0 * Math.sin(x / 30.0 * PI)) * 2.0 / 3.0;
|
|
79
70
|
return ret;
|
|
80
71
|
}
|
|
81
|
-
function normalizeProjectionOptions(point) {
|
|
82
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
83
|
-
var params = _objectSpread(_objectSpread({}, point), options);
|
|
84
|
-
var targetEpsg = params.epsg || params.EPSG;
|
|
85
|
-
var targetProjection = params.projection || (targetEpsg ? "EPSG:".concat(targetEpsg) : 'EPSG:4490');
|
|
86
|
-
var targetProj4 = params.proj4 || params.proj4Text || params.proj4Str;
|
|
87
|
-
return {
|
|
88
|
-
targetProjection: targetProjection,
|
|
89
|
-
targetProj4: targetProj4
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// GCJ02 --> CGCS2000
|
|
94
|
-
function transformGCJ2ToCGCS2000(point) {
|
|
95
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
96
|
-
var wgsPoint = transformGCJ2ToWGS(point);
|
|
97
|
-
var _normalizeProjectionO = normalizeProjectionOptions(point, options),
|
|
98
|
-
targetProjection = _normalizeProjectionO.targetProjection,
|
|
99
|
-
targetProj4 = _normalizeProjectionO.targetProj4;
|
|
100
|
-
if (targetProj4) {
|
|
101
|
-
_proj["default"].defs(targetProjection, targetProj4);
|
|
102
|
-
}
|
|
103
|
-
if (targetProjection === 'EPSG:4326' || targetProjection === 'EPSG:4490') {
|
|
104
|
-
return {
|
|
105
|
-
lng: wgsPoint.lng,
|
|
106
|
-
lat: wgsPoint.lat
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
var _proj4Lib = (0, _proj["default"])('EPSG:4326', targetProjection, [wgsPoint.lng, wgsPoint.lat]),
|
|
110
|
-
_proj4Lib2 = _slicedToArray(_proj4Lib, 2),
|
|
111
|
-
lng = _proj4Lib2[0],
|
|
112
|
-
lat = _proj4Lib2[1];
|
|
113
|
-
return {
|
|
114
|
-
lng: lng,
|
|
115
|
-
lat: lat
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
72
|
function transform(point, mapType) {
|
|
119
|
-
var olProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
120
73
|
var result = null;
|
|
121
74
|
switch (mapType) {
|
|
122
75
|
case 'bmap':
|
|
123
76
|
result = transformGCJ2ToBD(point);
|
|
124
77
|
break;
|
|
125
78
|
case 'olmap':
|
|
126
|
-
if (olProps !== null && olProps !== void 0 && olProps.epsg) {
|
|
127
|
-
result = transformGCJ2ToCGCS2000(point, olProps);
|
|
128
|
-
} else {
|
|
129
|
-
result = transformGCJ2ToWGS(point);
|
|
130
|
-
}
|
|
131
|
-
break;
|
|
132
79
|
case 'tmap':
|
|
133
80
|
case 'gmap':
|
|
134
81
|
result = transformGCJ2ToWGS(point);
|