Skip to content

Commit 8fba934

Browse files
More accurate CONTINOUS_RASTER color maps
1 parent fec6b3c commit 8fba934

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/api/src/spatialUploads/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,9 @@ async function getStyle(
536536
) {
537537
const band = geostats.bands[0]!;
538538
let rasterColorMix = [
539-
["*", 255, 65536],
540-
["*", 255, 256],
541-
255,
539+
["*", 258, 65536],
540+
["*", 258, 256],
541+
258,
542542
["+", -32768, band.base],
543543
] as any;
544544
if (band.interval && band.interval !== 1) {

packages/client/src/admin/data/styleEditor/visualizationTypes.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ export function convertToVisualizationType(
407407
if (isRasterInfo(geostats)) {
408408
const band = geostats.bands[0]!;
409409
let rasterColorMix = [
410-
["*", 255, 65536],
411-
["*", 255, 256],
412-
255,
410+
["*", 258, 65536],
411+
["*", 258, 256],
412+
258,
413413
["+", -32768, band.base],
414414
] as any;
415415
if (band.interval && band.interval !== 1) {

0 commit comments

Comments
 (0)