Revert "remove empty map layer"

This reverts commit 32752fe71e.
This commit is contained in:
Mateusz Konieczny 2022-12-22 15:12:09 +01:00
parent a2248b99d9
commit 86d437a609
4 changed files with 19 additions and 0 deletions

View File

@ -378,6 +378,8 @@
<LineSymbolizer stroke="#888" stroke-width="3.0"/> <LineSymbolizer stroke="#888" stroke-width="3.0"/>
</Rule> </Rule>
</Style> </Style>
<Style name="empty_map">
</Style>
<Style name="conservation_area"> <Style name="conservation_area">
<Rule> <Rule>
<PolygonSymbolizer fill="#73ebaf" /> <PolygonSymbolizer fill="#73ebaf" />

View File

@ -248,6 +248,15 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
{ color: '#8500d4', text: 'In Archaeological Priority Area'}, { color: '#8500d4', text: 'In Archaeological Priority Area'},
] ]
}, },
},
{
mapStyle: 'empty_map',
legend: {
title: 'Empty map',
disclaimer: 'This is an empty map to see overlays without distraction.',
elements: [
]
},
} }
], ],
[Category.Sustainability]: [{ [Category.Sustainability]: [{

View File

@ -15,6 +15,7 @@ export type BuildingMapTileset = 'date_year' |
'planning_applications_status_recent' | 'planning_applications_status_recent' |
'planning_applications_status_very_recent' | 'planning_applications_status_very_recent' |
'planning_combined' | 'planning_combined' |
'empty_map' |
'sust_dec' | 'sust_dec' |
'building_attachment_form' | 'building_attachment_form' |
'landuse' | 'landuse' |

View File

@ -191,6 +191,13 @@ const LAYER_QUERIES = {
OR planning_heritage_at_risk_url <> '' OR planning_heritage_at_risk_url <> ''
OR planning_in_apa_url <> '' OR planning_in_apa_url <> ''
`, `,
empty_map: `
SELECT
geometry_id
FROM
buildings
WHERE
sust_dec IS NOT NULL`,
conservation_area: ` conservation_area: `
SELECT SELECT
geometry_id geometry_id