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 { 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='&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" />
<BuildingDataLayer tileset={'survival_status'} revisionId={''} />
<BuildingDataLayer tileset={'survival_status'} revisionId={revisionId} />
</>
} else {
return null;

View File

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