@antv/l7-layers 2.11.2 → 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(function (c) {
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) {
@@ -29,9 +29,11 @@ export function getTileFactory(layer) {
29
29
 
30
30
  switch (dataType) {
31
31
  case 'rgb':
32
+ case 'customRGB':
32
33
  return RasterRGBTile;
33
34
 
34
35
  case 'arraybuffer':
36
+ case 'customArrayBuffer':
35
37
  return RasterTile;
36
38
 
37
39
  case "terrainRGB":
@@ -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 < 3 && visible) {
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 >= 3 && !visible) {
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(function (c) {
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) {
@@ -76,9 +76,11 @@ function getTileFactory(layer) {
76
76
 
77
77
  switch (dataType) {
78
78
  case 'rgb':
79
+ case 'customRGB':
79
80
  return _RasterRGBTile.default;
80
81
 
81
82
  case 'arraybuffer':
83
+ case 'customArrayBuffer':
82
84
  return _RasterTile.default;
83
85
 
84
86
  case "terrainRGB":
@@ -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 < 3 && visible) {
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 >= 3 && !visible) {
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.2",
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.2",
31
- "@antv/l7-maps": "2.11.2",
32
- "@antv/l7-source": "2.11.2",
33
- "@antv/l7-utils": "2.11.2",
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": "736a5ea590dca72c2ac2b0ded9f371ad4c95a72a",
64
+ "gitHead": "73291add563699ecf90ea9c39abbc5a5a5cecc2c",
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  }