@vtx/map 1.1.48 → 1.1.49
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/lib/VtxMap/AMap/AMap.js +6 -8
- package/lib/VtxMap/AMap/AMap.js.map +1 -1
- package/lib/VtxMap/BMap/Map.js +5 -8
- package/lib/VtxMap/BMap/Map.js.map +1 -1
- package/lib/VtxMap/GMap/Map.js +5 -7
- package/lib/VtxMap/GMap/Map.js.map +1 -1
- package/lib/VtxMap/OMap/Map.js +5 -7
- package/lib/VtxMap/OMap/Map.js.map +1 -1
- package/lib/VtxMap/OlMap/Map.js +38 -39
- package/lib/VtxMap/OlMap/Map.js.map +1 -1
- package/lib/VtxMap/TMap/TMap.js +5 -7
- package/lib/VtxMap/TMap/TMap.js.map +1 -1
- package/lib/VtxMap/optimizingPointMap.js +2 -2
- package/lib/VtxMap/optimizingPointMap.js.map +1 -1
- package/lib/VtxMap/zoomMap.js +2 -2
- package/lib/VtxMap/zoomMap.js.map +1 -1
- package/lib/VtxModal/VtxModal.js +2 -2
- package/lib/VtxModal/VtxModal.js.map +1 -1
- package/lib/VtxModal/draggableModal.js +2 -2
- package/lib/VtxModal/draggableModal.js.map +1 -1
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js +2 -2
- package/lib/VtxSearchCheckMap/VtxSearchCheckMap.js.map +1 -1
- package/lib/VtxSearchMap/VtxSearchMap.js +5 -4
- package/lib/VtxSearchMap/VtxSearchMap.js.map +1 -1
- package/package.json +1 -1
package/lib/VtxMap/GMap/Map.js
CHANGED
|
@@ -92,11 +92,11 @@ var ArcgisMap = /*#__PURE__*/function (_React$Component) {
|
|
|
92
92
|
mapRangingTool: null //测距回调
|
|
93
93
|
};
|
|
94
94
|
_this.rangingTools = {}; //测距点线缓存
|
|
95
|
+
_this.mapCreated = false;
|
|
95
96
|
_this.state = {
|
|
96
97
|
gis: null,
|
|
97
98
|
//地图对象
|
|
98
99
|
mapId: props.mapId,
|
|
99
|
-
mapCreated: false,
|
|
100
100
|
pointIds: [],
|
|
101
101
|
//地图上点的ids
|
|
102
102
|
lineIds: [],
|
|
@@ -232,9 +232,7 @@ var ArcgisMap = /*#__PURE__*/function (_React$Component) {
|
|
|
232
232
|
if (areaRestriction && !!areaRestriction[0] && !!areaRestriction[1]) {
|
|
233
233
|
t.setAreaRestriction(areaRestriction);
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
mapCreated: true
|
|
237
|
-
});
|
|
235
|
+
_this2.mapCreated = true;
|
|
238
236
|
};
|
|
239
237
|
//事件监听
|
|
240
238
|
var event = function event() {
|
|
@@ -3820,8 +3818,8 @@ var ArcgisMap = /*#__PURE__*/function (_React$Component) {
|
|
|
3820
3818
|
}
|
|
3821
3819
|
//已加载组件,收到新的参数时调用
|
|
3822
3820
|
}, {
|
|
3823
|
-
key: "
|
|
3824
|
-
value: function
|
|
3821
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
3822
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
3825
3823
|
var _this5 = this;
|
|
3826
3824
|
var t = this;
|
|
3827
3825
|
t.grwkid = nextProps.grwkid || 4326;
|
|
@@ -3879,7 +3877,7 @@ var ArcgisMap = /*#__PURE__*/function (_React$Component) {
|
|
|
3879
3877
|
isClearAreaRestriction = nextProps.isClearAreaRestriction,
|
|
3880
3878
|
isClearAll = nextProps.isClearAll;
|
|
3881
3879
|
// 等待地图加载
|
|
3882
|
-
if (!t.
|
|
3880
|
+
if (!t.mapCreated) return;
|
|
3883
3881
|
/*添加海量点*/
|
|
3884
3882
|
if (mapPointCollection instanceof Array && t.props.mapPointCollection instanceof Array && !t.deepEqual(mapPointCollection, t.props.mapPointCollection)) {
|
|
3885
3883
|
var _t$dataMatch = t.dataMatch(t.props.mapPointCollection, mapPointCollection, 'id'),
|