From d5f0681e20dd37487dc2c55b3b585f35a140d68e Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Thu, 25 May 2023 12:57:20 +0200 Subject: [PATCH] pass revisionId as needed --- app/src/frontend/map/layers/historic-data-layer.tsx | 4 ++-- app/src/frontend/map/map.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/frontend/map/layers/historic-data-layer.tsx b/app/src/frontend/map/layers/historic-data-layer.tsx index 5d5169ea..4bbe5080 100644 --- a/app/src/frontend/map/layers/historic-data-layer.tsx +++ b/app/src/frontend/map/layers/historic-data-layer.tsx @@ -5,7 +5,7 @@ import { BuildingBaseLayerAllZoom } from './building-base-layer-all-zoom'; import { useDisplayPreferences } from '../../displayPreferences-context'; import { BuildingDataLayer } from './building-data-layer'; -export function HistoricDataLayer({}) { +export function HistoricDataLayer({revisionId}: {revisionId: string}) { const { historicData } = useDisplayPreferences(); if(historicData == "enabled") { return <> @@ -14,7 +14,7 @@ export function HistoricDataLayer({}) { attribution='© CC BY 4.0 - Reproduced with the permission of the National Library of Scotland' /> - + } else { return null; diff --git a/app/src/frontend/map/map.tsx b/app/src/frontend/map/map.tsx index 9c2ffcbc..a1cb637a 100644 --- a/app/src/frontend/map/map.tsx +++ b/app/src/frontend/map/map.tsx @@ -128,7 +128,7 @@ export const ColouringMap : FC = ({ style={{zIndex: 300}} > - +