From ef32571362d342ba7a23f8018e8750217165a903 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Fri, 16 Sep 2022 14:07:12 +0200 Subject: [PATCH] fix: Show area layer even when base layer is off --- app/charts/map/map.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/charts/map/map.tsx b/app/charts/map/map.tsx index 717fdfbc4..a946bba22 100644 --- a/app/charts/map/map.tsx +++ b/app/charts/map/map.tsx @@ -222,7 +222,7 @@ export const MapComponent = () => { return new GeoJsonLayer({ id: "areaLayer", - beforeId: "water_polygon", + beforeId: showBaseLayer ? "water_polygon" : undefined, // @ts-ignore - FIXME: properly type data & getFillColor fields data: sortedShapes, pickable: true,