@deck.gl/carto 9.0.18 → 9.0.19
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 +2 -2
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +2 -2
- package/dist/layers/heatmap-tile-layer.js +2 -2
- 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 +3 -3
- package/package.json +2 -2
- package/src/layers/heatmap-tile-layer.ts +2 -2
|
@@ -95,9 +95,9 @@ class HeatmapTileLayer extends CompositeLayer {
|
|
|
95
95
|
};
|
|
96
96
|
let tileZ = 0;
|
|
97
97
|
let maxDensity = 0;
|
|
98
|
-
const tiles = [...this.state.tiles].filter(t => t.isVisible && t.
|
|
98
|
+
const tiles = [...this.state.tiles].filter(t => t.isVisible && t.content);
|
|
99
99
|
for (const tile of tiles) {
|
|
100
|
-
const cell = tile.
|
|
100
|
+
const cell = tile.content[0];
|
|
101
101
|
const unitDensity = unitDensityForCell(cell.id);
|
|
102
102
|
maxDensity = Math.max(tile.userData.maxWeight * unitDensity, maxDensity);
|
|
103
103
|
tileZ = Math.max(tile.zoom, tileZ);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TileReader } from "./carto-raster-tile.js";
|
|
2
2
|
import { parsePbf } from "./tile-loader-utils.js";
|
|
3
3
|
import { getWorkerUrl } from "../../utils.js";
|
|
4
|
-
const VERSION = typeof "9.0.
|
|
4
|
+
const VERSION = typeof "9.0.19" !== 'undefined' ? "9.0.19" : 'latest';
|
|
5
5
|
const id = 'cartoRasterTile';
|
|
6
6
|
const DEFAULT_OPTIONS = {
|
|
7
7
|
cartoRasterTile: {
|
|
@@ -2,7 +2,7 @@ import { TileReader } from "./carto-spatial-tile.js";
|
|
|
2
2
|
import { parsePbf } from "./tile-loader-utils.js";
|
|
3
3
|
import { getWorkerUrl } from "../../utils.js";
|
|
4
4
|
import { binaryToSpatialjson } from "./spatialjson-utils.js";
|
|
5
|
-
const VERSION = typeof "9.0.
|
|
5
|
+
const VERSION = typeof "9.0.19" !== 'undefined' ? "9.0.19" : 'latest';
|
|
6
6
|
const id = 'cartoSpatialTile';
|
|
7
7
|
const DEFAULT_OPTIONS = {
|
|
8
8
|
cartoSpatialTile: {
|
|
@@ -2,7 +2,7 @@ import earcut from 'earcut';
|
|
|
2
2
|
import { TileReader } from "./carto-tile.js";
|
|
3
3
|
import { parsePbf } from "./tile-loader-utils.js";
|
|
4
4
|
import { getWorkerUrl } from "../../utils.js";
|
|
5
|
-
const VERSION = typeof "9.0.
|
|
5
|
+
const VERSION = typeof "9.0.19" !== 'undefined' ? "9.0.19" : 'latest';
|
|
6
6
|
const id = 'cartoVectorTile';
|
|
7
7
|
const DEFAULT_OPTIONS = {
|
|
8
8
|
cartoVectorTile: {
|