Update historic maps to show Survival Status
This commit is contained in:
parent
07cb6b4846
commit
90af39dfaf
@ -3,14 +3,19 @@ import { TileLayer } from 'react-leaflet';
|
||||
import { LayerEnablementState } from '../../config/map-config';
|
||||
import { BuildingBaseLayerAllZoom } from './building-base-layer-all-zoom';
|
||||
import { useDisplayPreferences } from '../../displayPreferences-context';
|
||||
import { BuildingDataLayer } from './building-data-layer';
|
||||
|
||||
export function HistoricDataLayer({}) {
|
||||
const { historicData } = useDisplayPreferences();
|
||||
if(historicData == "enabled") {
|
||||
return <><TileLayer
|
||||
return <>
|
||||
<TileLayer
|
||||
url="https://mapseries-tilesets.s3.amazonaws.com/london_1890s/{z}/{x}/{y}.png"
|
||||
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={''} />
|
||||
</>
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user