pass revisionId as needed

This commit is contained in:
Mateusz Konieczny 2023-05-25 12:57:20 +02:00
parent 1f858e6caa
commit d5f0681e20
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import { BuildingBaseLayerAllZoom } from './building-base-layer-all-zoom';
import { useDisplayPreferences } from '../../displayPreferences-context'; import { useDisplayPreferences } from '../../displayPreferences-context';
import { BuildingDataLayer } from './building-data-layer'; import { BuildingDataLayer } from './building-data-layer';
export function HistoricDataLayer({}) { export function HistoricDataLayer({revisionId}: {revisionId: string}) {
const { historicData } = useDisplayPreferences(); const { historicData } = useDisplayPreferences();
if(historicData == "enabled") { if(historicData == "enabled") {
return <> return <>
@ -14,7 +14,7 @@ export function HistoricDataLayer({}) {
attribution='&copy; CC BY 4.0 - Reproduced with the permission of the <a href="https://maps.nls.uk/">National Library of Scotland</a>' attribution='&copy; CC BY 4.0 - Reproduced with the permission of the <a href="https://maps.nls.uk/">National Library of Scotland</a>'
/> />
<BuildingBaseLayerAllZoom theme="night_outlines" /> <BuildingBaseLayerAllZoom theme="night_outlines" />
<BuildingDataLayer tileset={'survival_status'} revisionId={''} /> <BuildingDataLayer tileset={'survival_status'} revisionId={revisionId} />
</> </>
} else { } else {
return null; return null;

View File

@ -128,7 +128,7 @@ export const ColouringMap : FC<ColouringMapProps> = ({
style={{zIndex: 300}} style={{zIndex: 300}}
> >
<CityBoundaryLayer/> <CityBoundaryLayer/>
<HistoricDataLayer/> <HistoricDataLayer revisionId={revisionId} />
<BoroughBoundaryLayer/> <BoroughBoundaryLayer/>
<ParcelBoundaryLayer/> <ParcelBoundaryLayer/>
<FloodBoundaryLayer/> <FloodBoundaryLayer/>