@antv/l7-layers 2.10.4 → 2.10.5
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/core/BaseLayer.js +3 -1
- package/lib/core/BaseLayer.js +3 -1
- package/package.json +6 -6
package/es/core/BaseLayer.js
CHANGED
|
@@ -1051,10 +1051,12 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
|
|
|
1051
1051
|
|
|
1052
1052
|
this.layerSource.on('update', function () {
|
|
1053
1053
|
if (_this8.coordCenter === undefined) {
|
|
1054
|
+
var _this8$mapService;
|
|
1055
|
+
|
|
1054
1056
|
var layerCenter = _this8.layerSource.center;
|
|
1055
1057
|
_this8.coordCenter = layerCenter;
|
|
1056
1058
|
|
|
1057
|
-
if (_this8.mapService.setCoordCenter) {
|
|
1059
|
+
if ((_this8$mapService = _this8.mapService) !== null && _this8$mapService !== void 0 && _this8$mapService.setCoordCenter) {
|
|
1058
1060
|
_this8.mapService.setCoordCenter(layerCenter);
|
|
1059
1061
|
}
|
|
1060
1062
|
}
|
package/lib/core/BaseLayer.js
CHANGED
|
@@ -1048,10 +1048,12 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
1048
1048
|
|
|
1049
1049
|
this.layerSource.on('update', function () {
|
|
1050
1050
|
if (_this8.coordCenter === undefined) {
|
|
1051
|
+
var _this8$mapService;
|
|
1052
|
+
|
|
1051
1053
|
var layerCenter = _this8.layerSource.center;
|
|
1052
1054
|
_this8.coordCenter = layerCenter;
|
|
1053
1055
|
|
|
1054
|
-
if (_this8.mapService.setCoordCenter) {
|
|
1056
|
+
if ((_this8$mapService = _this8.mapService) !== null && _this8$mapService !== void 0 && _this8$mapService.setCoordCenter) {
|
|
1055
1057
|
_this8.mapService.setCoordCenter(layerCenter);
|
|
1056
1058
|
}
|
|
1057
1059
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-layers",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.5",
|
|
4
4
|
"description": "L7's collection of built-in layers",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@antv/async-hook": "^2.2.2",
|
|
30
|
-
"@antv/l7-core": "2.10.
|
|
31
|
-
"@antv/l7-maps": "2.10.
|
|
32
|
-
"@antv/l7-source": "2.10.
|
|
33
|
-
"@antv/l7-utils": "2.10.
|
|
30
|
+
"@antv/l7-core": "2.10.5",
|
|
31
|
+
"@antv/l7-maps": "2.10.5",
|
|
32
|
+
"@antv/l7-source": "2.10.5",
|
|
33
|
+
"@antv/l7-utils": "2.10.5",
|
|
34
34
|
"@babel/runtime": "^7.7.7",
|
|
35
35
|
"@mapbox/martini": "^0.2.0",
|
|
36
36
|
"@turf/clone": "^6.5.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/gl-matrix": "^2.4.5",
|
|
62
62
|
"@types/lodash": "^4.14.138"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "64bee613c3e1daedad46cb78de9a85b992392209",
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
}
|