From 4c1921d116fefff2823d6a16582de5a851392144 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 2 May 2026 02:08:59 +0000 Subject: [PATCH] fix: Hide background layer in satellite mode The background layer type was not being hidden, causing it to cover the satellite imagery. Now hideVectorFills hides fill, fill-extrusion, AND background layer types. Co-Authored-By: Claude Opus 4.5 --- src/components/MapView.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MapView.jsx b/src/components/MapView.jsx index 47454ee..00546e7 100644 --- a/src/components/MapView.jsx +++ b/src/components/MapView.jsx @@ -1334,9 +1334,9 @@ function hideVectorFills(map) { if (!style || !style.layers) return for (const layer of style.layers) { - // Hide fill layers (land, water, parks, buildings, etc.) + // Hide fill and background layers (land, water, parks, buildings, etc.) // But keep line, symbol, and circle layers - if (layer.type === 'fill' || layer.type === 'fill-extrusion') { + if (layer.type === 'fill' || layer.type === 'fill-extrusion' || layer.type === 'background') { // Don't hide our own overlay fills (public lands, etc) if (layer.id.startsWith('public-lands') || layer.id.startsWith('boundary') ||