Skip to content

Commit

Permalink
CARTO: HeatmapTileLayer fix palette updating (#9453)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Feb 20, 2025
1 parent 6463200 commit 019a1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/carto/src/layers/heatmap-tile-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class HeatmapTileLayer<DataT = any, ExtraProps extends {} = {}> extends Composit

if (colorTexture && colorTexture?.width === colorRange.length) {
// TODO(v9): Unclear whether `setSubImageData` is a public API, or what to use if not.
(colorTexture as any).setSubImageData({data: colors});
(colorTexture as any).setTexture2DData({data: colors});
} else {
colorTexture?.destroy();
// @ts-ignore TODO v9.1
Expand Down

0 comments on commit 019a1e4

Please # to comment.