new layers
This commit is contained in:
parent
8f8edd0a17
commit
1de5c51209
@ -444,6 +444,75 @@
|
||||
<LineSymbolizer stroke="#eacad0" stroke-width="1.75" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="planning_applications_status_very_recent">
|
||||
<Rule>
|
||||
<Filter>[status] = "Submitted" and [days_since_registered_with_local_authority_date] <= 7</Filter>
|
||||
<PolygonSymbolizer fill="#53f5dd"/>
|
||||
<LineSymbolizer stroke="#53f5dd" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Approved" and [days_since_decision_date] <= 7</Filter>
|
||||
<PolygonSymbolizer fill="#16cf15"/>
|
||||
<LineSymbolizer stroke="#16cf15" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Appeal In Progress" and [days_since_decision_date] <= 7</Filter>
|
||||
<PolygonSymbolizer fill="#fff200"/>
|
||||
<LineSymbolizer stroke="#fff200" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Rejected" and [days_since_decision_date] <= 7</Filter>
|
||||
<PolygonSymbolizer fill="#e31d23"/>
|
||||
<LineSymbolizer stroke="#e31d23" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Withdrawn" and [days_since_registered_with_local_authority_date] <= 7</Filter>
|
||||
<PolygonSymbolizer fill="#999999"/>
|
||||
<LineSymbolizer stroke="#999999" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] != "Submitted" and [status] != "Approved" and [status] != "Appeal In Progress" and [status] != "Rejected" and [status] != "Withdrawn" and [days_since_registered_with_local_authority_date] <= 7</Filter>
|
||||
<PolygonSymbolizer fill="#eacad0"/>
|
||||
<LineSymbolizer stroke="#eacad0" stroke-width="1.75" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="planning_applications_status_secretary_of_state">
|
||||
<Rule>
|
||||
<Filter>[status] = "Submitted"</Filter>
|
||||
<PolygonSymbolizer fill="#53f5dd"/>
|
||||
<LineSymbolizer stroke="#53f5dd" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Approved"</Filter>
|
||||
<PolygonSymbolizer fill="#16cf15"/>
|
||||
<LineSymbolizer stroke="#16cf15" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Appeal In Progress"</Filter>
|
||||
<PolygonSymbolizer fill="#fff200"/>
|
||||
<LineSymbolizer stroke="#fff200" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Rejected"</Filter>
|
||||
<PolygonSymbolizer fill="#e31d23"/>
|
||||
<LineSymbolizer stroke="#e31d23" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Withdrawn"</Filter>
|
||||
<PolygonSymbolizer fill="#999999"/>
|
||||
<LineSymbolizer stroke="#999999" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Withdrawn"</Filter>
|
||||
<PolygonSymbolizer fill="#262626"/>
|
||||
<LineSymbolizer stroke="#262626" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] != "Submitted" and [status] != "Approved" and [status] != "Appeal In Progress" and [status] != "Rejected" and [status] != "Withdrawn"</Filter>
|
||||
<PolygonSymbolizer fill="#eacad0"/>
|
||||
<LineSymbolizer stroke="#eacad0" stroke-width="1.75" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="planning_combined">
|
||||
<Rule>
|
||||
<Filter>[planning_in_conservation_area] = true</Filter>
|
||||
|
@ -196,6 +196,34 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
mapStyle: 'planning_applications_status_very_recent',
|
||||
legend: {
|
||||
title: 'Very recent planning applications',
|
||||
elements: [
|
||||
{ color: '#53f5dd', text: 'Submitted, awaiting decision' },
|
||||
{ color: '#fff200', text: 'Appeal In Progress' },
|
||||
{ color: '#16cf15', text: 'Approved' },
|
||||
{ color: '#e31d23', text: 'Rejected' },
|
||||
{ color: '#999999', text: 'Withdrawn' },
|
||||
{ color: '#eacad0', text: 'Other' },
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
mapStyle: 'planning_applications_status_secretary_of_state',
|
||||
legend: {
|
||||
title: 'Called in by Secretary of State',
|
||||
elements: [
|
||||
{ color: '#53f5dd', text: 'Submitted, awaiting decision' },
|
||||
{ color: '#fff200', text: 'Appeal In Progress' },
|
||||
{ color: '#16cf15', text: 'Approved' },
|
||||
{ color: '#e31d23', text: 'Rejected' },
|
||||
{ color: '#999999', text: 'Withdrawn' },
|
||||
{ color: '#eacad0', text: 'Other' },
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
mapStyle: 'planning_applications_status',
|
||||
legend: {
|
||||
|
@ -13,7 +13,9 @@ export type BuildingMapTileset = 'date_year' |
|
||||
'community_in_public_ownership' |
|
||||
'planning_applications_status_all' |
|
||||
'planning_applications_status_recent' |
|
||||
'planning_applications_status_very_recent' |
|
||||
'planning_applications_status' |
|
||||
'planning_applications_status_secretary_of_state' |
|
||||
'planning_combined' |
|
||||
'sust_dec' |
|
||||
'building_attachment_form' |
|
||||
|
@ -148,6 +148,19 @@ const LAYER_QUERIES = {
|
||||
FROM building_properties
|
||||
INNER JOIN planning_data ON building_properties.uprn = planning_data.uprn
|
||||
INNER JOIN buildings ON building_properties.building_id = buildings.building_id`,
|
||||
planning_applications_status_very_recent: `SELECT
|
||||
buildings.geometry_id, building_properties.uprn, building_properties.building_id, planning_data.status AS status, planning_data.uprn,
|
||||
EXTRACT(epoch FROM age(decision_date))/3600/24 AS days_since_decision_date,
|
||||
EXTRACT(epoch FROM age(registered_with_local_authority_date))/3600/24 AS days_since_registered_with_local_authority_date
|
||||
FROM building_properties
|
||||
INNER JOIN planning_data ON building_properties.uprn = planning_data.uprn
|
||||
INNER JOIN buildings ON building_properties.building_id = buildings.building_id`,
|
||||
planning_applications_status_secretary_of_state: `SELECT
|
||||
buildings.geometry_id, building_properties.uprn, building_properties.building_id, planning_data.status AS status, planning_data.uprn
|
||||
FROM building_properties
|
||||
INNER JOIN planning_data ON building_properties.uprn = planning_data.uprn
|
||||
INNER JOIN buildings ON building_properties.building_id = buildings.building_id
|
||||
WHERE status_before_aliasing = 'Called in by Secretary of State'`,
|
||||
planning_applications_status: `SELECT
|
||||
buildings.geometry_id, building_properties.uprn, building_properties.building_id, planning_data.status AS status, planning_data.uprn,
|
||||
EXTRACT(epoch FROM age(decision_date))/3600/24 AS days_since_decision_date,
|
||||
|
Loading…
Reference in New Issue
Block a user