Merge pull request #1166 from matkoniecz/fix/1143-cache

Fix revision not being passed
This commit is contained in:
Mike Simpson 2023-05-25 12:13:05 +01:00 committed by GitHub
commit 9957118684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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/>