add special empty map
I am deeply unhappy about ugly disclaimer handling though right now I have no good ideas how to provide nicer display
This commit is contained in:
parent
5ba6e270f2
commit
bec6277706
@ -308,6 +308,8 @@
|
||||
<LineSymbolizer stroke="#888" stroke-width="3.0"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="empty_map">
|
||||
</Style>
|
||||
<Style name="conservation_area">
|
||||
<Rule>
|
||||
<PolygonSymbolizer fill="#73ebaf" />
|
||||
|
@ -270,6 +270,15 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
||||
{ 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]: [{
|
||||
|
@ -17,6 +17,7 @@ export type BuildingMapTileset = 'date_year' |
|
||||
'planning_applications_status' |
|
||||
'planning_applications_status_secretary_of_state' |
|
||||
'planning_combined' |
|
||||
'empty_map' |
|
||||
'sust_dec' |
|
||||
'building_attachment_form' |
|
||||
'landuse' |
|
||||
|
@ -81,7 +81,7 @@ export const Legend : FC<LegendProps> = ({
|
||||
}
|
||||
{
|
||||
elements.length === 0 ?
|
||||
<p className="data-intro">Coming soon…</p> :
|
||||
( disclaimer ? <ul className={collapseList ? 'collapse data-legend' : 'data-legend'} ><p className='legend-disclaimer'>{disclaimer}</p></ul> : <p className="data-intro">Coming soon…</p>) :
|
||||
<ul className={collapseList ? 'collapse data-legend' : 'data-legend'} >
|
||||
{
|
||||
disclaimer && <p className='legend-disclaimer'>{disclaimer}</p>
|
||||
|
@ -193,7 +193,14 @@ const LAYER_QUERIES = {
|
||||
OR planning_heritage_at_risk_url <> ''
|
||||
OR planning_in_apa_url <> ''
|
||||
`,
|
||||
conservation_area: `
|
||||
empty_map: `
|
||||
SELECT
|
||||
geometry_id
|
||||
FROM
|
||||
buildings
|
||||
WHERE
|
||||
sust_dec IS NOT NULL`,
|
||||
conservation_area: `
|
||||
SELECT
|
||||
geometry_id
|
||||
FROM
|
||||
|
Loading…
Reference in New Issue
Block a user