From 3bed64c41abe7a5fdfc24c6ea1d680430433dbe5 Mon Sep 17 00:00:00 2001 From: John Huebbe Date: Sat, 22 Aug 2026 20:48:12 -0500 Subject: [PATCH] Fix color-relief display artifacts --- frontend/src/components/MapView.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/MapView.tsx b/frontend/src/components/MapView.tsx index ffc53d4..390f9e4 100644 --- a/frontend/src/components/MapView.tsx +++ b/frontend/src/components/MapView.tsx @@ -237,7 +237,17 @@ export function MapView({ map.addLayer({ id: layer, type: "color-relief", source: src, layout: { visibility: remVisible ? "visible" : "none" }, - paint: { "color-relief-color": colorReliefExpr(opts.ramp, opts.min, opts.max, opts.reverse, opts.transparent) as any, "color-relief-opacity": 0.95 }, + paint: { + "color-relief-color": colorReliefExpr( + opts.ramp, + opts.min, + opts.max, + opts.reverse, + opts.transparent + ) as any, + "color-relief-opacity": 0.95, + "resampling": "nearest", + }, } as any); remRef.current = { src, layer }; // Bring overlay layers above the freshly added REM tint (river stays below REM intentionally)