@vtx/map 1.1.13 → 1.1.14
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/OMap/Map.js +43 -43
- package/lib/VtxMap/OMap/Map.js.map +1 -1
- package/lib/VtxMap/OMap/Map.less +70 -70
- package/lib/VtxMap/OlMap/Map.js +23 -23
- package/lib/VtxMap/OlMap/Map.js.map +1 -1
- package/lib/VtxMap/OlMap/Map.less +164 -164
- package/lib/VtxMap/TMap/TMap.js +18 -18
- package/lib/VtxMap/TMap/TMap.js.map +1 -1
- package/lib/VtxSearchMap/VtxSearchMap.js +2 -0
- package/lib/VtxSearchMap/VtxSearchMap.js.map +1 -1
- package/lib/VtxSearchMap/index.js.map +1 -1
- package/lib/VtxSearchMap/mapping.js.map +1 -1
- package/package.json +1 -1
package/lib/VtxMap/OMap/Map.less
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
.label-content{
|
|
2
|
-
display: inline-block;
|
|
3
|
-
padding: 5px;
|
|
4
|
-
line-height: 22px;
|
|
5
|
-
text-align: center;
|
|
6
|
-
border-radius: 5px;
|
|
7
|
-
background-color: #fff;
|
|
8
|
-
opacity: 1;
|
|
9
|
-
color: #5DD0EE;
|
|
10
|
-
transform: translate(-50%);
|
|
11
|
-
-ms-transform: translate(-50%);
|
|
12
|
-
}
|
|
13
|
-
.noselect {
|
|
14
|
-
-webkit-touch-callout: none; /* iOS Safari */
|
|
15
|
-
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
|
16
|
-
-khtml-user-select: none; /* Konqueror */
|
|
17
|
-
-moz-user-select: none; /* Firefox */
|
|
18
|
-
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
19
|
-
user-select: none; /* Non-prefixed version, currently
|
|
20
|
-
not supported by any browser */
|
|
21
|
-
}
|
|
22
|
-
.vtx_gmap_html_pointCollection_a{
|
|
23
|
-
position: absolute;
|
|
24
|
-
canvas{
|
|
25
|
-
z-index: 111;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
.vtx-g-rangingPoint{
|
|
29
|
-
width: 8px;
|
|
30
|
-
height: 8px;
|
|
31
|
-
background-color: #fff;
|
|
32
|
-
border: 2px solid #108ee9;
|
|
33
|
-
display: inline-block;
|
|
34
|
-
border-radius: 8px;
|
|
35
|
-
position: relative;
|
|
36
|
-
top: 5px;
|
|
37
|
-
left: 1px;
|
|
38
|
-
}
|
|
39
|
-
.vtx-g-rangingDistance{
|
|
40
|
-
position: relative;
|
|
41
|
-
top: -36px;
|
|
42
|
-
left: 15px;
|
|
43
|
-
height: 30px;
|
|
44
|
-
line-height: 28px;
|
|
45
|
-
background-color: #fff;
|
|
46
|
-
border: 1px solid #108ee9;
|
|
47
|
-
font-size: 12px;
|
|
48
|
-
word-break: keep-all;
|
|
49
|
-
padding: 0px 3px;
|
|
50
|
-
color: #108ee9;
|
|
51
|
-
}
|
|
52
|
-
.vtx-g-rang-exit{
|
|
53
|
-
width: 12px;
|
|
54
|
-
height: 12px;
|
|
55
|
-
background-color: #fff;
|
|
56
|
-
border: 2px solid #108ee9;
|
|
57
|
-
color: #108ee9;
|
|
58
|
-
line-height: 7px;
|
|
59
|
-
text-align: center;
|
|
60
|
-
font-size: 12px;
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
}
|
|
63
|
-
.vtx-g-rang-showRangTool{
|
|
64
|
-
line-height: 18px;
|
|
65
|
-
font-size: 12px;
|
|
66
|
-
border: 1px solid #108ee9;
|
|
67
|
-
word-break: keep-all;
|
|
68
|
-
background-color: #fff;
|
|
69
|
-
padding: 0px 5px;
|
|
70
|
-
}
|
|
1
|
+
.label-content{
|
|
2
|
+
display: inline-block;
|
|
3
|
+
padding: 5px;
|
|
4
|
+
line-height: 22px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
border-radius: 5px;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
opacity: 1;
|
|
9
|
+
color: #5DD0EE;
|
|
10
|
+
transform: translate(-50%);
|
|
11
|
+
-ms-transform: translate(-50%);
|
|
12
|
+
}
|
|
13
|
+
.noselect {
|
|
14
|
+
-webkit-touch-callout: none; /* iOS Safari */
|
|
15
|
+
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
|
16
|
+
-khtml-user-select: none; /* Konqueror */
|
|
17
|
+
-moz-user-select: none; /* Firefox */
|
|
18
|
+
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
19
|
+
user-select: none; /* Non-prefixed version, currently
|
|
20
|
+
not supported by any browser */
|
|
21
|
+
}
|
|
22
|
+
.vtx_gmap_html_pointCollection_a{
|
|
23
|
+
position: absolute;
|
|
24
|
+
canvas{
|
|
25
|
+
z-index: 111;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.vtx-g-rangingPoint{
|
|
29
|
+
width: 8px;
|
|
30
|
+
height: 8px;
|
|
31
|
+
background-color: #fff;
|
|
32
|
+
border: 2px solid #108ee9;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
border-radius: 8px;
|
|
35
|
+
position: relative;
|
|
36
|
+
top: 5px;
|
|
37
|
+
left: 1px;
|
|
38
|
+
}
|
|
39
|
+
.vtx-g-rangingDistance{
|
|
40
|
+
position: relative;
|
|
41
|
+
top: -36px;
|
|
42
|
+
left: 15px;
|
|
43
|
+
height: 30px;
|
|
44
|
+
line-height: 28px;
|
|
45
|
+
background-color: #fff;
|
|
46
|
+
border: 1px solid #108ee9;
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
word-break: keep-all;
|
|
49
|
+
padding: 0px 3px;
|
|
50
|
+
color: #108ee9;
|
|
51
|
+
}
|
|
52
|
+
.vtx-g-rang-exit{
|
|
53
|
+
width: 12px;
|
|
54
|
+
height: 12px;
|
|
55
|
+
background-color: #fff;
|
|
56
|
+
border: 2px solid #108ee9;
|
|
57
|
+
color: #108ee9;
|
|
58
|
+
line-height: 7px;
|
|
59
|
+
text-align: center;
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
.vtx-g-rang-showRangTool{
|
|
64
|
+
line-height: 18px;
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
border: 1px solid #108ee9;
|
|
67
|
+
word-break: keep-all;
|
|
68
|
+
background-color: #fff;
|
|
69
|
+
padding: 0px 5px;
|
|
70
|
+
}
|
package/lib/VtxMap/OlMap/Map.js
CHANGED
|
@@ -1372,10 +1372,10 @@ var OlMap = /*#__PURE__*/function (_React$Component) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
} //将制定图元展示在视野内 (强制改变地图中心位置)
|
|
1374
1374
|
|
|
1375
|
-
/*
|
|
1376
|
-
参数arg格式如下1,2
|
|
1377
|
-
1.string 格式如:'1,a,2,3,4'
|
|
1378
|
-
2.数组 ['1','2']
|
|
1375
|
+
/*
|
|
1376
|
+
参数arg格式如下1,2
|
|
1377
|
+
1.string 格式如:'1,a,2,3,4'
|
|
1378
|
+
2.数组 ['1','2']
|
|
1379
1379
|
*/
|
|
1380
1380
|
|
|
1381
1381
|
}, {
|
|
@@ -1698,12 +1698,12 @@ var OlMap = /*#__PURE__*/function (_React$Component) {
|
|
|
1698
1698
|
item.value.clear();
|
|
1699
1699
|
});
|
|
1700
1700
|
}
|
|
1701
|
-
/*
|
|
1702
|
-
* 添加信息窗口
|
|
1703
|
-
* params
|
|
1704
|
-
* @position: Array[longitude,latitude]
|
|
1705
|
-
* @content: String|HTML
|
|
1706
|
-
* @close: boolean
|
|
1701
|
+
/*
|
|
1702
|
+
* 添加信息窗口
|
|
1703
|
+
* params
|
|
1704
|
+
* @position: Array[longitude,latitude]
|
|
1705
|
+
* @content: String|HTML
|
|
1706
|
+
* @close: boolean
|
|
1707
1707
|
*/
|
|
1708
1708
|
|
|
1709
1709
|
}, {
|
|
@@ -3480,10 +3480,10 @@ var OlMap = /*#__PURE__*/function (_React$Component) {
|
|
|
3480
3480
|
isClearAll = nextProps.isClearAll; // 等待地图加载
|
|
3481
3481
|
|
|
3482
3482
|
if (!t.state.mapCreated) return;
|
|
3483
|
-
/*点数据处理
|
|
3484
|
-
pointData[2]相同的点,执行刷新
|
|
3485
|
-
pointData[1]的数据在idsForGraphicId中不存在的,执行新增
|
|
3486
|
-
pointData[0]数据中多余的id,执行删除
|
|
3483
|
+
/*点数据处理
|
|
3484
|
+
pointData[2]相同的点,执行刷新
|
|
3485
|
+
pointData[1]的数据在idsForGraphicId中不存在的,执行新增
|
|
3486
|
+
pointData[0]数据中多余的id,执行删除
|
|
3487
3487
|
*/
|
|
3488
3488
|
|
|
3489
3489
|
if (mapPoints instanceof Array && t.props.mapPoints instanceof Array && !t.deepEqual(mapPoints, t.props.mapPoints)) {
|
|
@@ -3532,9 +3532,9 @@ var OlMap = /*#__PURE__*/function (_React$Component) {
|
|
|
3532
3532
|
|
|
3533
3533
|
t.updatePoint([].concat(_toConsumableArray(upds), _toConsumableArray(otherupds)));
|
|
3534
3534
|
}
|
|
3535
|
-
/*
|
|
3536
|
-
线数据处理
|
|
3537
|
-
先全删除,再新增
|
|
3535
|
+
/*
|
|
3536
|
+
线数据处理
|
|
3537
|
+
先全删除,再新增
|
|
3538
3538
|
*/
|
|
3539
3539
|
|
|
3540
3540
|
|
|
@@ -3584,9 +3584,9 @@ var OlMap = /*#__PURE__*/function (_React$Component) {
|
|
|
3584
3584
|
|
|
3585
3585
|
t.updateLine([].concat(_toConsumableArray(_upds), _toConsumableArray(_otherupds)));
|
|
3586
3586
|
}
|
|
3587
|
-
/*
|
|
3588
|
-
面数据处理
|
|
3589
|
-
先全删除,再新增
|
|
3587
|
+
/*
|
|
3588
|
+
面数据处理
|
|
3589
|
+
先全删除,再新增
|
|
3590
3590
|
*/
|
|
3591
3591
|
|
|
3592
3592
|
|
|
@@ -3636,9 +3636,9 @@ var OlMap = /*#__PURE__*/function (_React$Component) {
|
|
|
3636
3636
|
|
|
3637
3637
|
t.updatePolygon([].concat(_toConsumableArray(_upds2), _toConsumableArray(_otherupds2)));
|
|
3638
3638
|
}
|
|
3639
|
-
/*
|
|
3640
|
-
圆数据处理
|
|
3641
|
-
先全删除,再新增
|
|
3639
|
+
/*
|
|
3640
|
+
圆数据处理
|
|
3641
|
+
先全删除,再新增
|
|
3642
3642
|
*/
|
|
3643
3643
|
|
|
3644
3644
|
|