@vtx/map 1.2.30 → 6.0.0-beta.1
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 +359 -355
- package/lib/VtxMap/BMap/Map.js +331 -330
- package/lib/VtxMap/BMap/Map1.js +1712 -0
- package/lib/VtxMap/GMap/Map.js +432 -427
- package/lib/VtxMap/Map.js +31 -27
- package/lib/VtxMap/MapToolFunction.js +6 -7
- package/lib/VtxMap/OMap/Map.js +410 -405
- package/lib/VtxMap/OMap/Map.less +70 -70
- package/lib/VtxMap/OlMap/Map.js +450 -440
- package/lib/VtxMap/OlMap/Map.less +230 -230
- package/lib/VtxMap/TMap/TMap.js +321 -318
- package/lib/VtxMap/index.js +10 -11
- package/lib/VtxMap/mapPlayer.js +15 -16
- package/lib/VtxMap/optimizingPointMap.js +35 -33
- package/lib/VtxMap/style/index.js +1 -2
- package/lib/VtxMap/zoomMap.js +24 -23
- package/lib/VtxModal/VtxModal.js +94 -82
- package/lib/VtxModal/VtxModal.less +83 -52
- package/lib/VtxModal/draggableModal.js +35 -33
- package/lib/VtxModal/index.js +6 -7
- package/lib/VtxModal/style/index.js +1 -15
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js +265 -244
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.less +69 -43
- package/lib/VtxSearchCheckMap/index.js +4 -9
- package/lib/VtxSearchCheckMap/mapping.js +1 -2
- package/lib/VtxSearchCheckMap/style/index.js +5 -11
- package/lib/VtxSearchMap/VtxSearchMap.js +326 -288
- package/lib/VtxSearchMap/VtxSearchMap.less +74 -47
- package/lib/VtxSearchMap/VtxSearchMapAntd3.less +1 -1
- package/lib/VtxSearchMap/index.js +4 -9
- package/lib/VtxSearchMap/mapping.js +1 -2
- package/lib/VtxSearchMap/style/index.js +1 -28
- package/lib/default.js +44 -24
- package/lib/index.js +30 -31
- package/lib/utils/util.js +3 -4
- package/package.json +19 -27
- package/lib/VtxMap/AMap/AMap.css +0 -27
- package/lib/VtxMap/AMap/AMap.js.map +0 -1
- package/lib/VtxMap/BMap/Map.css +0 -26
- package/lib/VtxMap/BMap/Map.js.map +0 -1
- package/lib/VtxMap/GMap/Map.css +0 -88
- package/lib/VtxMap/GMap/Map.js.map +0 -1
- package/lib/VtxMap/Map.css +0 -7
- package/lib/VtxMap/Map.js.map +0 -1
- package/lib/VtxMap/MapToolFunction.js.map +0 -1
- package/lib/VtxMap/OMap/Map.css +0 -76
- package/lib/VtxMap/OMap/Map.js.map +0 -1
- package/lib/VtxMap/OlMap/Map.css +0 -229
- package/lib/VtxMap/OlMap/Map.js.map +0 -1
- package/lib/VtxMap/TMap/TMap.css +0 -31
- package/lib/VtxMap/TMap/TMap.js.map +0 -1
- package/lib/VtxMap/index.js.map +0 -1
- package/lib/VtxMap/mapPlayer.js.map +0 -1
- package/lib/VtxMap/optimizingPointMap.js.map +0 -1
- package/lib/VtxMap/style/css.js +0 -10
- package/lib/VtxMap/style/css.js.map +0 -1
- package/lib/VtxMap/style/index.js.map +0 -1
- package/lib/VtxMap/zoomMap.js.map +0 -1
- package/lib/VtxModal/VtxModal.css +0 -62
- package/lib/VtxModal/VtxModal.js.map +0 -1
- package/lib/VtxModal/VtxModalAntd3.css +0 -62
- package/lib/VtxModal/VtxModalAntd3.less +0 -67
- package/lib/VtxModal/draggableModal.js.map +0 -1
- package/lib/VtxModal/index.js.map +0 -1
- package/lib/VtxModal/style/css.js +0 -15
- package/lib/VtxModal/style/css.js.map +0 -1
- package/lib/VtxModal/style/index.js.map +0 -1
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.css +0 -182
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js.map +0 -1
- package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.css +0 -0
- package/lib/VtxSearchCheckMap/VtxSearchCheckMapAntd3.less +0 -1
- package/lib/VtxSearchCheckMap/index.js.map +0 -1
- package/lib/VtxSearchCheckMap/mapping.js.map +0 -1
- package/lib/VtxSearchCheckMap/style/css.js +0 -28
- package/lib/VtxSearchCheckMap/style/css.js.map +0 -1
- package/lib/VtxSearchCheckMap/style/index.js.map +0 -1
- package/lib/VtxSearchMap/VtxSearchMap.css +0 -202
- package/lib/VtxSearchMap/VtxSearchMap.js.map +0 -1
- package/lib/VtxSearchMap/VtxSearchMapAntd3.css +0 -0
- package/lib/VtxSearchMap/index.js.map +0 -1
- package/lib/VtxSearchMap/mapping.js.map +0 -1
- package/lib/VtxSearchMap/style/css.js +0 -28
- package/lib/VtxSearchMap/style/css.js.map +0 -1
- package/lib/VtxSearchMap/style/index.js.map +0 -1
- package/lib/default.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/utils/util.js.map +0 -1
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
.vtx-ui-searchmap-searchmodal{
|
|
1
|
+
.vtx-ui-searchmap-searchmodal {
|
|
4
2
|
z-index: 1001;
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
|
|
4
|
+
.ant-modal {
|
|
5
|
+
width: calc(100% - 200px) !important;
|
|
7
6
|
min-width: 800px;
|
|
8
7
|
height: 70vh;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
|
|
9
|
+
.ant-modal-title {
|
|
10
|
+
color: var(--ant-color-primary);
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
.ant-modal-content {
|
|
13
14
|
width: 100%;
|
|
14
15
|
height: 100%;
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
.ant-modal-body {
|
|
16
18
|
width: 100%;
|
|
17
|
-
height:
|
|
19
|
+
height: calc(100% - 108px) !important;
|
|
18
20
|
padding: 0px;
|
|
19
|
-
background-color:
|
|
21
|
+
background-color: var(--ant-color-background);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
|
-
|
|
25
|
+
|
|
26
|
+
.vtx-ui-searchmap-searchmap {
|
|
24
27
|
width: 100%;
|
|
25
28
|
height: 100%;
|
|
26
29
|
padding-top: 48px;
|
|
@@ -28,32 +31,40 @@
|
|
|
28
31
|
box-sizing: border-box;
|
|
29
32
|
position: relative;
|
|
30
33
|
overflow: hidden;
|
|
31
|
-
|
|
34
|
+
|
|
35
|
+
.vtx-ui-searchmap-top,
|
|
36
|
+
.vtx-ui-searchmap-bottom {
|
|
32
37
|
width: 100%;
|
|
33
38
|
height: 48px;
|
|
34
39
|
position: absolute;
|
|
35
40
|
left: 0px;
|
|
36
41
|
padding: 10px 15px;
|
|
37
|
-
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
|
|
44
|
+
button {
|
|
38
45
|
margin-left: 10px;
|
|
39
46
|
}
|
|
40
47
|
}
|
|
41
|
-
|
|
48
|
+
|
|
49
|
+
.vtx-ui-searchmap-top {
|
|
42
50
|
top: 0px;
|
|
43
|
-
border-bottom: 1px solid
|
|
51
|
+
border-bottom: 1px solid var(--ant-color-border);
|
|
44
52
|
display: flex;
|
|
45
53
|
align-items: center;
|
|
46
54
|
justify-content: space-between;
|
|
47
55
|
flex-wrap: nowrap;
|
|
48
56
|
white-space: nowrap;
|
|
57
|
+
|
|
49
58
|
.vtx-ui-searchmap-top-right {
|
|
50
59
|
display: flex;
|
|
51
60
|
align-items: center;
|
|
52
61
|
justify-content: flex-end;
|
|
62
|
+
|
|
53
63
|
div+div {
|
|
54
64
|
margin-left: 8px;
|
|
55
65
|
}
|
|
56
66
|
}
|
|
67
|
+
|
|
57
68
|
// .vtx-ui-searchmap-othermodal{
|
|
58
69
|
// position: absolute;
|
|
59
70
|
// right: 25px;
|
|
@@ -76,28 +87,34 @@
|
|
|
76
87
|
// cursor: pointer;
|
|
77
88
|
// }
|
|
78
89
|
}
|
|
79
|
-
|
|
90
|
+
|
|
91
|
+
.vtx-ui-searchmap-bottom {
|
|
80
92
|
bottom: 0px;
|
|
81
|
-
border-top: 1px solid
|
|
93
|
+
border-top: 1px solid var(--ant-color-border);
|
|
82
94
|
text-align: right;
|
|
83
95
|
}
|
|
84
|
-
|
|
96
|
+
|
|
97
|
+
.vtx-ui-searchmap-content {
|
|
85
98
|
width: 100%;
|
|
86
99
|
height: 100%;
|
|
87
100
|
position: relative;
|
|
88
101
|
padding-left: 25px;
|
|
89
|
-
|
|
102
|
+
|
|
103
|
+
.vtx-ui-searchmap-show {
|
|
90
104
|
display: inline-block;
|
|
91
105
|
width: 100%;
|
|
92
106
|
height: 100%;
|
|
93
107
|
}
|
|
94
|
-
|
|
108
|
+
|
|
109
|
+
.vtx-ui-searchmap-hidden {
|
|
95
110
|
display: none;
|
|
96
111
|
}
|
|
97
|
-
|
|
112
|
+
|
|
113
|
+
.vtx-ui-searchmap-w_l {
|
|
98
114
|
width: 300px !important;
|
|
99
115
|
}
|
|
100
|
-
|
|
116
|
+
|
|
117
|
+
.vtx-ui-searchmap-content_left {
|
|
101
118
|
width: 25px;
|
|
102
119
|
height: 100%;
|
|
103
120
|
display: inline-block;
|
|
@@ -106,59 +123,67 @@
|
|
|
106
123
|
transition-duration: 0.3s;
|
|
107
124
|
transition-property: width;
|
|
108
125
|
vertical-align: top;
|
|
109
|
-
border-right: 1px solid
|
|
126
|
+
border-right: 1px solid var(--ant-color-border);
|
|
110
127
|
position: absolute;
|
|
111
128
|
top: 0px;
|
|
112
129
|
left: 0px;
|
|
113
130
|
z-index: 10;
|
|
114
|
-
background-color:
|
|
115
|
-
|
|
131
|
+
background-color: var(--ant-color-background);
|
|
132
|
+
|
|
133
|
+
.vtx-ui-searchmap-listtitle {
|
|
116
134
|
width: 100%;
|
|
117
135
|
height: 30px;
|
|
118
136
|
line-height: 30px;
|
|
119
|
-
border-bottom: 1px solid
|
|
120
|
-
|
|
137
|
+
border-bottom: 1px solid var(--ant-color-border);
|
|
138
|
+
|
|
139
|
+
.vtx-ui-searchmap-title {
|
|
121
140
|
width: e('calc(100% - 30px)');
|
|
122
141
|
display: inline-block;
|
|
123
142
|
padding-left: 15px;
|
|
124
143
|
font-size: 15px;
|
|
125
144
|
}
|
|
126
|
-
|
|
145
|
+
|
|
146
|
+
.vtx-ui-searchmap-btn {
|
|
127
147
|
display: inline-block;
|
|
128
148
|
width: 30px;
|
|
129
149
|
text-align: center;
|
|
130
|
-
color:
|
|
150
|
+
color: var(--ant-color-primary);
|
|
131
151
|
height: 30px;
|
|
132
152
|
line-height: 30px;
|
|
133
153
|
cursor: pointer;
|
|
134
154
|
}
|
|
135
155
|
}
|
|
136
|
-
|
|
156
|
+
|
|
157
|
+
.vtx-ui-searchmap-lists {
|
|
137
158
|
width: 100%;
|
|
138
159
|
line-height: 35px;
|
|
139
|
-
border-bottom: 1px solid
|
|
160
|
+
border-bottom: 1px solid var(--ant-color-border);
|
|
140
161
|
font-size: 12px;
|
|
141
162
|
overflow: hidden;
|
|
142
163
|
text-overflow: ellipsis;
|
|
143
164
|
white-space: nowrap;
|
|
144
|
-
padding:0px 15px;
|
|
165
|
+
padding: 0px 15px;
|
|
145
166
|
cursor: pointer;
|
|
146
167
|
color: #999;
|
|
147
|
-
|
|
168
|
+
|
|
169
|
+
&:hover {
|
|
148
170
|
background-color: #ECF6FD;
|
|
149
|
-
color:
|
|
171
|
+
color: var(--ant-color-primary);
|
|
150
172
|
}
|
|
151
173
|
}
|
|
152
|
-
|
|
174
|
+
|
|
175
|
+
.vtx-ui-searchmap-lists.vtx-ui-searchmap-select {
|
|
153
176
|
background-color: #ECF6FD;
|
|
154
|
-
color:
|
|
177
|
+
color: var(--ant-color-primary);
|
|
155
178
|
}
|
|
156
|
-
|
|
179
|
+
|
|
180
|
+
.vtx-ui-searchmap-scrollauto {
|
|
157
181
|
height: e('calc(100% - 30px)');
|
|
158
182
|
overflow-y: auto;
|
|
159
183
|
}
|
|
160
184
|
}
|
|
161
|
-
|
|
185
|
+
|
|
186
|
+
.vtx-ui-searchmap-content_right {
|
|
162
187
|
width: 100%;
|
|
163
188
|
height: 100%;
|
|
164
189
|
display: inline-block;
|
|
@@ -167,9 +192,10 @@
|
|
|
167
192
|
transition-duration: 0.3s;
|
|
168
193
|
transition-property: width;
|
|
169
194
|
}
|
|
170
|
-
|
|
195
|
+
|
|
196
|
+
.vtx-ui-searchmap-btn {
|
|
171
197
|
text-align: center;
|
|
172
|
-
color:
|
|
198
|
+
color: var(--ant-color-primary);
|
|
173
199
|
height: 30px;
|
|
174
200
|
line-height: 30px;
|
|
175
201
|
cursor: pointer;
|
|
@@ -177,7 +203,8 @@
|
|
|
177
203
|
}
|
|
178
204
|
}
|
|
179
205
|
}
|
|
180
|
-
|
|
206
|
+
|
|
207
|
+
.vtx-ui-searchmap-showlabel {
|
|
181
208
|
margin-left: 0;
|
|
182
209
|
width: 100px;
|
|
183
210
|
line-height: 25px;
|
|
@@ -194,15 +221,15 @@
|
|
|
194
221
|
word-break: normal;
|
|
195
222
|
overflow: hidden;
|
|
196
223
|
}
|
|
197
|
-
|
|
224
|
+
|
|
225
|
+
.vtx-ui-searchmap-hiddenlabel {
|
|
198
226
|
display: none;
|
|
199
227
|
}
|
|
200
228
|
|
|
201
|
-
.vtx-ui-searchmap-bottom{
|
|
229
|
+
.vtx-ui-searchmap-bottom {
|
|
202
230
|
display: flex;
|
|
203
231
|
align-items: center;
|
|
204
232
|
justify-content: space-between;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
233
|
+
|
|
234
|
+
.vtx-ui-searchmap-address {}
|
|
208
235
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import (reference) '~antd/lib/style/themes/index.less';
|
|
1
|
+
// @import (reference) '~antd/lib/style/themes/index.less';
|
|
@@ -6,15 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "VtxSearchMap", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return _VtxSearchMap
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "default", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _VtxSearchMap["default"];
|
|
9
|
+
return _VtxSearchMap.default;
|
|
16
10
|
}
|
|
17
11
|
});
|
|
12
|
+
exports.default = void 0;
|
|
18
13
|
var _VtxSearchMap = _interopRequireDefault(require("./VtxSearchMap"));
|
|
19
|
-
function _interopRequireDefault(
|
|
20
|
-
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
var _default = exports.default = _VtxSearchMap.default;
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("antd/lib/button/style");
|
|
4
|
-
require("antd/lib/input/style");
|
|
5
|
-
require("antd/lib/message/style");
|
|
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
|
-
}
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";
|
package/lib/default.js
CHANGED
|
@@ -3,47 +3,67 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
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
|
-
|
|
9
|
+
exports.loadScript = loadScript;
|
|
12
10
|
// 必须是3.9.0之后的版本
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} else if (antdMajorVersion === '4') {
|
|
16
|
-
createFromIconfontCN = require('@ant-design/icons').createFromIconfontCN;
|
|
17
|
-
}
|
|
11
|
+
|
|
12
|
+
var createFromIconfontCN = require("@ant-design/icons").createFromIconfontCN;
|
|
18
13
|
var globalCfg = window.VtxPublicServiceAddress || {};
|
|
19
14
|
var VtxMapIcon = exports.VtxMapIcon = createFromIconfontCN({
|
|
20
|
-
|
|
21
|
-
scriptUrl: "".concat(globalCfg.mapServerURL || '//vortexplugin.cloudhw.cn/mapplugin', "/icon_font.js")
|
|
15
|
+
scriptUrl: "".concat(globalCfg.mapServerURL || "//vortexplugin.cloudhw.cn/mapplugin", "/icon_font.js")
|
|
22
16
|
});
|
|
23
|
-
|
|
24
|
-
// 代理服务器地址
|
|
25
|
-
serviceHost: '/_BMapService/'
|
|
26
|
-
};
|
|
27
|
-
var _default = exports["default"] = {
|
|
17
|
+
var configUrl = {
|
|
28
18
|
// 百度地图资源请求地址
|
|
29
|
-
bmapScriptUrl: globalCfg.bmapScriptUrl ? globalCfg.bmapScriptUrl :
|
|
19
|
+
bmapScriptUrl: globalCfg.bmapScriptUrl ? globalCfg.bmapScriptUrl : "//api.map.baidu.com/getscript?v=3.0&ak=42IughV5lDxAt0wI8AhDVuGR",
|
|
30
20
|
// 高德地图资源请求地址
|
|
31
|
-
amapScriptUrl: globalCfg.amapScriptUrl ? globalCfg.amapScriptUrl :
|
|
21
|
+
amapScriptUrl: globalCfg.amapScriptUrl ? globalCfg.amapScriptUrl : "//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",
|
|
32
22
|
// 天地图资源请求地址
|
|
33
23
|
tmapScriptUrl: globalCfg.tmapScriptUrl ? globalCfg.tmapScriptUrl : "//api.tianditu.gov.cn/api?v=4.0&tk=".concat(getTMapTK()),
|
|
34
24
|
//地图服务地址ip
|
|
35
|
-
mapServerURL: globalCfg.mapServerURL ? globalCfg.mapServerURL :
|
|
25
|
+
mapServerURL: globalCfg.mapServerURL ? globalCfg.mapServerURL : "//vortexplugin.cloudhw.cn/mapplugin",
|
|
36
26
|
//arcgis地图服务ip
|
|
37
|
-
arcgisServerURL: globalCfg.arcgisServerURL ? globalCfg.arcgisServerURL :
|
|
27
|
+
arcgisServerURL: globalCfg.arcgisServerURL ? globalCfg.arcgisServerURL : "//vortexplugin.cloudhw.cn/gis",
|
|
38
28
|
//openlayer地图服务ip
|
|
39
|
-
openlayerServerURL: globalCfg.openlayerServerURL ? globalCfg.openlayerServerURL :
|
|
29
|
+
openlayerServerURL: globalCfg.openlayerServerURL ? globalCfg.openlayerServerURL : "//vortexplugin.cloudhw.cn/openlayer",
|
|
30
|
+
jqueryScriptUrl: globalCfg.jqueryScriptUrl ? globalCfg.jqueryScriptUrl : "https://vortexplugin.cloudhw.cn/jquery/jquery.min.js"
|
|
40
31
|
};
|
|
41
32
|
function getTMapTK() {
|
|
42
33
|
if (window.TMapTK) {
|
|
43
34
|
return window.TMapTK;
|
|
44
35
|
} else {
|
|
45
|
-
var tks = [
|
|
36
|
+
var tks = ["b95ec6e55998a6408862ab2ac36c4950", "0e3608ea5e57ac901f1e14e653818910", "55bbbfecae274ce7de92579f15a5fbad"];
|
|
46
37
|
return tks[Math.floor(Math.random() * 3)];
|
|
47
38
|
}
|
|
48
39
|
}
|
|
49
|
-
|
|
40
|
+
function loadScript(url, callback) {
|
|
41
|
+
var script = document.createElement('script');
|
|
42
|
+
script.type = 'text/javascript';
|
|
43
|
+
if (script.readyState) {
|
|
44
|
+
//IE
|
|
45
|
+
script.onreadystatechange = function () {
|
|
46
|
+
if (script.readyState == 'loaded' || script.readyState == 'complete') {
|
|
47
|
+
script.onreadystatechange = null;
|
|
48
|
+
callback && callback();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
} else {
|
|
52
|
+
//Others
|
|
53
|
+
script.onload = function () {
|
|
54
|
+
callback();
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
script.src = url;
|
|
58
|
+
document.body.appendChild(script);
|
|
59
|
+
}
|
|
60
|
+
function ensurejQuery() {
|
|
61
|
+
return new Promise(function (resolve) {
|
|
62
|
+
if (window.$) {
|
|
63
|
+
resolve();
|
|
64
|
+
} else {
|
|
65
|
+
loadScript(configUrl.jqueryScriptUrl, resolve);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
var _default = exports.default = configUrl;
|
package/lib/index.js
CHANGED
|
@@ -3,37 +3,36 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "VtxMap", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _VtxMap.VtxMap;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "VtxOptMap", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _VtxMap.VtxOptMap;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "VtxSearchCheckMap", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _VtxSearchCheckMap.VtxSearchCheckMap;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "VtxSearchMap", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _VtxSearchMap.VtxSearchMap;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "VtxZoomMap", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _VtxMap.VtxZoomMap;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
6
|
var _VtxMap = require("./VtxMap");
|
|
7
|
+
Object.keys(_VtxMap).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _VtxMap[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _VtxMap[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
37
17
|
var _VtxSearchMap = require("./VtxSearchMap");
|
|
18
|
+
Object.keys(_VtxSearchMap).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _VtxSearchMap[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _VtxSearchMap[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
38
28
|
var _VtxSearchCheckMap = require("./VtxSearchCheckMap");
|
|
39
|
-
|
|
29
|
+
Object.keys(_VtxSearchCheckMap).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _VtxSearchCheckMap[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _VtxSearchCheckMap[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
package/lib/utils/util.js
CHANGED
|
@@ -10,8 +10,8 @@ exports.transformGCJ2ToWGS = transformGCJ2ToWGS;
|
|
|
10
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); }
|
|
11
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; }
|
|
12
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; }
|
|
13
|
-
function _defineProperty(
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
16
|
var x_pi = 3.14159265358979324 * 3000.0 / 180.0;
|
|
17
17
|
// GCJ02 --> BD09
|
|
@@ -126,5 +126,4 @@ var MapTypeEnum = exports.MapTypeEnum = {
|
|
|
126
126
|
olmap: 'wgs84',
|
|
127
127
|
tmap: 'wgs84',
|
|
128
128
|
arcgis: 'wgs84'
|
|
129
|
-
};
|
|
130
|
-
//# sourceMappingURL=util.js.map
|
|
129
|
+
};
|
package/package.json
CHANGED
|
@@ -1,63 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtx/map",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.1",
|
|
4
4
|
"description": "@vtx/map",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
|
+
"module": "es/index.js",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"start": "dumi dev",
|
|
8
9
|
"docs:dark": "cross-env UMI_COLOR=dark dumi dev",
|
|
9
10
|
"docs:build": "dumi build",
|
|
10
11
|
"build": "gulp compile",
|
|
12
|
+
"compile": "father build",
|
|
11
13
|
"build:old": "rimraf lib && babel src --out-dir lib && node styleProcessor.js",
|
|
12
|
-
"prepublish": "npm run build"
|
|
14
|
+
"prepublish": "npm run build",
|
|
15
|
+
"publish:beta": "npm publish --tag beta"
|
|
13
16
|
},
|
|
14
17
|
"files": [
|
|
15
18
|
"lib"
|
|
16
19
|
],
|
|
17
20
|
"dependencies": {
|
|
18
21
|
"immutable": "^3.8.2",
|
|
19
|
-
"lodash": "^4.17.
|
|
22
|
+
"lodash-es": "^4.17.21"
|
|
20
23
|
},
|
|
21
24
|
"devDependencies": {
|
|
22
|
-
"
|
|
23
|
-
"@
|
|
24
|
-
"
|
|
25
|
-
"@babel/preset-env": "^7.18.2",
|
|
26
|
-
"@babel/preset-react": "^7.17.12",
|
|
27
|
-
"antd": "^4.21.2",
|
|
28
|
-
"babel-cli": "^6.14.0",
|
|
29
|
-
"babel-core": "^6.18.2",
|
|
30
|
-
"babel-eslint": "^7.1.1",
|
|
31
|
-
"babel-loader": "^6.2.7",
|
|
32
|
-
"babel-plugin-add-module-exports": "^0.2.1",
|
|
33
|
-
"babel-plugin-import": "^1.13.5",
|
|
34
|
-
"babel-plugin-transform-remove-console": "^6.8.5",
|
|
35
|
-
"babel-plugin-transform-runtime": "^6.9.0",
|
|
36
|
-
"babel-polyfill": "^6.9.1",
|
|
37
|
-
"babel-preset-es2015": "^6.24.1",
|
|
38
|
-
"babel-preset-react": "^6.24.1",
|
|
39
|
-
"babel-preset-stage-0": "^6.24.1",
|
|
25
|
+
"ahooks": "^3.9.6",
|
|
26
|
+
"@ant-design/icons": "^6.0.0",
|
|
27
|
+
"antd": "^6.0.0",
|
|
40
28
|
"compile": "^0.0.2",
|
|
41
29
|
"cross-env": "^7.0.3",
|
|
42
|
-
"dumi": "^
|
|
30
|
+
"dumi": "^2.4.21",
|
|
31
|
+
"dumi-theme-vortex-style": "^1.0.0",
|
|
43
32
|
"gulp": "^4.0.2",
|
|
44
33
|
"gulp-babel": "^8.0.0",
|
|
45
34
|
"gulp-bump": "^3.2.0",
|
|
46
35
|
"gulp-clean": "^0.4.0",
|
|
47
36
|
"gulp-less": "^5.0.0",
|
|
48
37
|
"gulp-sourcemaps": "^3.0.0",
|
|
49
|
-
"jquery": "^3.6.0",
|
|
50
38
|
"less": "^3.9.0",
|
|
51
39
|
"less-plugin-autoprefix": "^2.0.0",
|
|
52
40
|
"less-plugin-npm-import": "^2.1.0",
|
|
53
41
|
"merge2": "^1.4.1",
|
|
54
42
|
"rimraf": "^2.6.2",
|
|
55
|
-
"
|
|
43
|
+
"use-deep-compare": "^1.3.0",
|
|
44
|
+
"through2": "^4.0.2",
|
|
45
|
+
"father": "^4.6.7"
|
|
56
46
|
},
|
|
57
47
|
"peerDependencies": {
|
|
58
|
-
"
|
|
59
|
-
"react
|
|
48
|
+
"antd": "^6.0.0",
|
|
49
|
+
"react": ">=18.0.0",
|
|
50
|
+
"react-dom": ">=18.0.0",
|
|
51
|
+
"@ant-design/icons": "^6.0.0"
|
|
60
52
|
},
|
|
61
53
|
"author": "vortex",
|
|
62
54
|
"license": "MIT"
|
|
63
|
-
}
|
|
55
|
+
}
|
package/lib/VtxMap/AMap/AMap.css
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
.A_Map_rangingTool {
|
|
2
|
-
width: 7px;
|
|
3
|
-
height: 7px;
|
|
4
|
-
background: #fff;
|
|
5
|
-
border: 2px solid #ff0000;
|
|
6
|
-
padding: 0px;
|
|
7
|
-
border-radius: 7px;
|
|
8
|
-
}
|
|
9
|
-
.amap-marker-label {
|
|
10
|
-
border: 0px !important;
|
|
11
|
-
background-color: transparent !important;
|
|
12
|
-
}
|
|
13
|
-
.amap-marker-content {
|
|
14
|
-
position: relative;
|
|
15
|
-
white-space: inherit !important;
|
|
16
|
-
}
|
|
17
|
-
.amap-info-content {
|
|
18
|
-
padding: 0 !important;
|
|
19
|
-
}
|
|
20
|
-
.vtx_gmap_html_pointCollection_a {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 0px;
|
|
23
|
-
left: 0px;
|
|
24
|
-
}
|
|
25
|
-
.vtx_gmap_html_pointCollection_a canvas {
|
|
26
|
-
z-index: 1;
|
|
27
|
-
}
|