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 { 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='© CC BY 4.0 - Reproduced with the permission of the <a href="https://maps.nls.uk/">National Library of Scotland</a>'
|
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" />
|
<BuildingBaseLayerAllZoom theme="night_outlines" />
|
||||||
<BuildingDataLayer tileset={'survival_status'} revisionId={''} />
|
<BuildingDataLayer tileset={'survival_status'} revisionId={revisionId} />
|
||||||
</>
|
</>
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
@ -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/>
|
||||||
|
Loading…
Reference in New Issue
Block a user