@deck.gl/carto 9.0.33 → 9.0.34
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/dist/cartoRasterTile-worker.js +1 -1
- package/dist/cartoSpatialTile-worker.js +1 -1
- package/dist/cartoVectorTile-worker.js +1 -1
- package/dist/dist.dev.js +4 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +2 -2
- package/dist/layers/raster-layer.d.ts.map +1 -1
- package/dist/layers/raster-layer.js +4 -0
- package/dist/layers/schema/carto-raster-tile-loader.js +1 -1
- package/dist/layers/schema/carto-spatial-tile-loader.js +1 -1
- package/dist/layers/schema/carto-vector-tile-loader.js +1 -1
- package/dist.min.js +5 -5
- package/package.json +2 -2
- package/src/layers/raster-layer.ts +10 -0
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.0.
|
|
6
|
+
"version": "9.0.34",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"@deck.gl/layers": "^9.0.0",
|
|
73
73
|
"@loaders.gl/core": "^4.2.0"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "eb03446717e49042747ef6f7b1be581561a2249e"
|
|
76
76
|
}
|
|
@@ -77,6 +77,15 @@ type _RasterLayerProps = {
|
|
|
77
77
|
tileIndex: bigint;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
type RasterColumnLayerData = {
|
|
81
|
+
data: Raster;
|
|
82
|
+
length: number;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
function wrappedDataComparator(oldData: RasterColumnLayerData, newData: RasterColumnLayerData) {
|
|
86
|
+
return oldData.data === newData.data && oldData.length === newData.length;
|
|
87
|
+
}
|
|
88
|
+
|
|
80
89
|
// Adapter layer around RasterColumnLayer that converts data & accessors into correct format
|
|
81
90
|
export default class RasterLayer<DataT = any, ExtraProps = {}> extends CompositeLayer<
|
|
82
91
|
Required<RasterLayerProps<DataT>> & ExtraProps
|
|
@@ -125,6 +134,7 @@ export default class RasterLayer<DataT = any, ExtraProps = {}> extends Composite
|
|
|
125
134
|
data, // Pass through data for getSubLayerAccessor()
|
|
126
135
|
length: blockSize * blockSize
|
|
127
136
|
},
|
|
137
|
+
dataComparator: wrappedDataComparator,
|
|
128
138
|
offset,
|
|
129
139
|
highlightedObjectIndex,
|
|
130
140
|
highlightColor
|