@deck.gl/carto 9.2.5 → 9.2.7

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "CARTO official integration with Deck.gl. Build geospatial applications using CARTO and Deck.gl.",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "9.2.5",
6
+ "version": "9.2.7",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -43,14 +43,14 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@carto/api-client": "^0.5.19",
46
- "@loaders.gl/compression": "^4.2.0",
47
- "@loaders.gl/gis": "^4.2.0",
48
- "@loaders.gl/loader-utils": "^4.2.0",
49
- "@loaders.gl/mvt": "^4.2.0",
50
- "@loaders.gl/schema": "^4.2.0",
51
- "@loaders.gl/tiles": "^4.2.0",
52
- "@luma.gl/core": "^9.2.4",
53
- "@luma.gl/shadertools": "^9.2.4",
46
+ "@loaders.gl/compression": "^4.3.4",
47
+ "@loaders.gl/gis": "^4.3.4",
48
+ "@loaders.gl/loader-utils": "^4.3.4",
49
+ "@loaders.gl/mvt": "^4.3.4",
50
+ "@loaders.gl/schema": "^4.3.4",
51
+ "@loaders.gl/tiles": "^4.3.4",
52
+ "@luma.gl/core": "^9.2.6",
53
+ "@luma.gl/shadertools": "^9.2.6",
54
54
  "@math.gl/web-mercator": "^4.1.0",
55
55
  "@types/d3-array": "^3.0.2",
56
56
  "@types/d3-color": "^1.4.2",
@@ -62,7 +62,7 @@
62
62
  "d3-scale": "^4.0.0",
63
63
  "earcut": "^2.2.4",
64
64
  "h3-js": "^4.1.0",
65
- "moment-timezone": "^0.5.33",
65
+ "moment-timezone": "^0.6.0",
66
66
  "pbf": "^3.2.1",
67
67
  "quadbin": "^0.4.0"
68
68
  },
@@ -72,8 +72,8 @@
72
72
  "@deck.gl/extensions": "~9.2.0",
73
73
  "@deck.gl/geo-layers": "~9.2.0",
74
74
  "@deck.gl/layers": "~9.2.0",
75
- "@loaders.gl/core": "^4.2.0",
76
- "@luma.gl/core": "~9.2.4"
75
+ "@loaders.gl/core": "^4.3.4",
76
+ "@luma.gl/core": "~9.2.6"
77
77
  },
78
- "gitHead": "73c754b70fc9dcfde9cac98f24e2eca28b297204"
78
+ "gitHead": "71d3cfbf4f5f917bf98755a7d75e84c982149f99"
79
79
  }
@@ -76,15 +76,16 @@ export function RTTModifier<T extends _ConstructorOf<Layer>>(BaseLayer: T): T {
76
76
  const {shaderModuleProps} = opts;
77
77
  const {picking} = shaderModuleProps;
78
78
  const postProcessLayer = getPostProcessLayer(this);
79
+ const enableRTT = !picking.isActive && postProcessLayer.enableRTT;
79
80
 
80
- if (!picking.isActive) {
81
+ if (enableRTT) {
81
82
  postProcessLayer.enableRTT(opts);
82
83
  }
83
84
 
84
85
  // Draw actual layer
85
86
  super.draw(opts);
86
87
 
87
- if (!picking.isActive) {
88
+ if (enableRTT) {
88
89
  postProcessLayer.disableRTT();
89
90
  }
90
91
  }
@@ -115,7 +115,7 @@ export default class RasterLayer<DataT = any, ExtraProps = {}> extends Composite
115
115
  tileIndex,
116
116
  updateTriggers
117
117
  } = this.props as typeof this.props & {data: Raster};
118
- if (!data || !tileIndex) return null;
118
+ if (!data || !tileIndex || (data as any).length === 0) return null;
119
119
 
120
120
  const blockSize = data.blockSize ?? 0;
121
121
  const [xOffset, yOffset, scale] = quadbinToOffset(tileIndex);