rework colours in map style
This commit is contained in:
parent
1aac2599ef
commit
146148a08a
@ -315,25 +315,45 @@
|
||||
</Style>
|
||||
<Style name="planning_applications_status">
|
||||
<Rule>
|
||||
<Filter>[status] = "Submitted"</Filter>
|
||||
<Filter>[status] = "Submitted" and [days_since_registered_with_local_authority_date] < 366</Filter>
|
||||
<PolygonSymbolizer fill="#53f5dd"/>
|
||||
<LineSymbolizer stroke="#53f5dd" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Approved"</Filter>
|
||||
<Filter>[status] = "Submitted" and [days_since_registered_with_local_authority_date] >= 366</Filter>
|
||||
<PolygonSymbolizer fill="#467c74"/>
|
||||
<LineSymbolizer stroke="#467c74" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Approved" and [days_since_decision_date] < 366</Filter>
|
||||
<PolygonSymbolizer fill="#16cf15"/>
|
||||
<LineSymbolizer stroke="#16cf15" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Appeal In Progress"</Filter>
|
||||
<Filter>[status] = "Approved" and [days_since_decision_date] >= 366</Filter>
|
||||
<PolygonSymbolizer fill="#053405"/>
|
||||
<LineSymbolizer stroke="#053405" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Appeal In Progress" and [days_since_decision_date] < 366</Filter>
|
||||
<PolygonSymbolizer fill="#fff200"/>
|
||||
<LineSymbolizer stroke="#fff200" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Rejected"</Filter>
|
||||
<Filter>[status] = "Appeal In Progress" and [days_since_decision_date] >= 366</Filter>
|
||||
<PolygonSymbolizer fill="#807b2b"/>
|
||||
<LineSymbolizer stroke="#807b2b" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Rejected" and [days_since_decision_date] < 366</Filter>
|
||||
<PolygonSymbolizer fill="#e31d23"/>
|
||||
<LineSymbolizer stroke="#e31d23" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Rejected" and [days_since_decision_date] >= 366</Filter>
|
||||
<PolygonSymbolizer fill="#763436"/>
|
||||
<LineSymbolizer stroke="#763436" stroke-width="1.75" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[status] = "Withdrawn"</Filter>
|
||||
<PolygonSymbolizer fill="#999999"/>
|
||||
|
@ -137,7 +137,9 @@ const LAYER_QUERIES = {
|
||||
community_public_ownership IS NOT NULL
|
||||
`,
|
||||
planning_applications_status: `SELECT
|
||||
buildings.geometry_id, building_properties.uprn, building_properties.building_id, planning_data.status AS status, planning_data.uprn, planning_data.decision_date, planning_data.registered_with_local_authority_date
|
||||
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`,
|
||||
|
Loading…
Reference in New Issue
Block a user