@antv/l7-layers 2.11.1 → 2.11.3
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.
|
@@ -106,9 +106,7 @@ var PixelPickingPlugin = (_dec = injectable(), _dec(_class = /*#__PURE__*/functi
|
|
|
106
106
|
return model.addUniforms({
|
|
107
107
|
u_PickingStage: PickingStage.HIGHLIGHT,
|
|
108
108
|
u_PickingColor: pickedColor,
|
|
109
|
-
u_HighlightColor: highlightColorInArray.map(
|
|
110
|
-
return c * 255;
|
|
111
|
-
}),
|
|
109
|
+
// u_HighlightColor: highlightColorInArray.map((c) => c * 255),
|
|
112
110
|
u_activeMix: selectMix,
|
|
113
111
|
u_CurrentSelectedId: pickedColor,
|
|
114
112
|
u_SelectColor: highlightColorInArray.map(function (c) {
|
|
@@ -75,12 +75,12 @@ var BaseTileLayer = /*#__PURE__*/function () {
|
|
|
75
75
|
var _this$parent$getLayer = this.parent.getLayerConfig(),
|
|
76
76
|
visible = _this$parent$getLayer.visible;
|
|
77
77
|
|
|
78
|
-
if (zoom <
|
|
78
|
+
if (zoom < 2 && visible) {
|
|
79
79
|
this.parent.updateLayerConfig({
|
|
80
80
|
visible: false
|
|
81
81
|
});
|
|
82
82
|
this.layerService.reRender();
|
|
83
|
-
} else if (zoom >=
|
|
83
|
+
} else if (zoom >= 2 && !visible) {
|
|
84
84
|
this.parent.updateLayerConfig({
|
|
85
85
|
visible: true
|
|
86
86
|
});
|
|
@@ -120,9 +120,7 @@ var PixelPickingPlugin = (_dec = (0, _inversify.injectable)(), _dec(_class = /*#
|
|
|
120
120
|
return model.addUniforms({
|
|
121
121
|
u_PickingStage: PickingStage.HIGHLIGHT,
|
|
122
122
|
u_PickingColor: pickedColor,
|
|
123
|
-
u_HighlightColor: highlightColorInArray.map(
|
|
124
|
-
return c * 255;
|
|
125
|
-
}),
|
|
123
|
+
// u_HighlightColor: highlightColorInArray.map((c) => c * 255),
|
|
126
124
|
u_activeMix: selectMix,
|
|
127
125
|
u_CurrentSelectedId: pickedColor,
|
|
128
126
|
u_SelectColor: highlightColorInArray.map(function (c) {
|
|
@@ -91,12 +91,12 @@ var BaseTileLayer = /*#__PURE__*/function () {
|
|
|
91
91
|
var _this$parent$getLayer = this.parent.getLayerConfig(),
|
|
92
92
|
visible = _this$parent$getLayer.visible;
|
|
93
93
|
|
|
94
|
-
if (zoom <
|
|
94
|
+
if (zoom < 2 && visible) {
|
|
95
95
|
this.parent.updateLayerConfig({
|
|
96
96
|
visible: false
|
|
97
97
|
});
|
|
98
98
|
this.layerService.reRender();
|
|
99
|
-
} else if (zoom >=
|
|
99
|
+
} else if (zoom >= 2 && !visible) {
|
|
100
100
|
this.parent.updateLayerConfig({
|
|
101
101
|
visible: true
|
|
102
102
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-layers",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.3",
|
|
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.9",
|
|
30
|
-
"@antv/l7-core": "2.11.
|
|
31
|
-
"@antv/l7-maps": "2.11.
|
|
32
|
-
"@antv/l7-source": "2.11.
|
|
33
|
-
"@antv/l7-utils": "2.11.
|
|
30
|
+
"@antv/l7-core": "2.11.3",
|
|
31
|
+
"@antv/l7-maps": "2.11.3",
|
|
32
|
+
"@antv/l7-source": "2.11.3",
|
|
33
|
+
"@antv/l7-utils": "2.11.3",
|
|
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": "73291add563699ecf90ea9c39abbc5a5a5cecc2c",
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
}
|