pass revisionId as needed
This commit is contained in:
parent
1f858e6caa
commit
d5f0681e20
@ -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 <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;
|
||||
|
@ -128,7 +128,7 @@ export const ColouringMap : FC<ColouringMapProps> = ({
|
||||
style={{zIndex: 300}}
|
||||
>
|
||||
<CityBoundaryLayer/>
|
||||
<HistoricDataLayer/>
|
||||
<HistoricDataLayer revisionId={revisionId} />
|
||||
<BoroughBoundaryLayer/>
|
||||
<ParcelBoundaryLayer/>
|
||||
<FloodBoundaryLayer/>
|
||||
|
Loading…
Reference in New Issue
Block a user