diff --git a/app/map_styles/polygon.xml b/app/map_styles/polygon.xml index 518f5c84..f6f3fd60 100644 --- a/app/map_styles/polygon.xml +++ b/app/map_styles/polygon.xml @@ -334,6 +334,18 @@ [listing_type] = "Locally Listed" + + [listing_type] = "Heritage at Risk" + + + + [listing_type] = "In World Heritage Site" + + + + [listing_type] = "In Archaeological Priority Area" + + [listing_type] != "None" or [planning_in_conservation_area] = true diff --git a/app/src/frontend/config/category-maps-config.ts b/app/src/frontend/config/category-maps-config.ts index 4b728e24..24013fa3 100644 --- a/app/src/frontend/config/category-maps-config.ts +++ b/app/src/frontend/config/category-maps-config.ts @@ -173,11 +173,14 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} = title: 'Designation/protection', disclaimer: 'All data relating to designated buildings should be checked on the National Heritage List for England or local authority websites where used for planning or development purposes', elements: [ - { color: '#95beba', text: 'In conservation area'}, - { color: '#c72e08', text: 'Grade I listed'}, - { color: '#e75b42', text: 'Grade II* listed'}, - { color: '#ffbea1', text: 'Grade II listed'}, - { color: '#858ed4', text: 'Locally listed'}, + { color: '#95beba', text: 'In Conservation Area'}, + { color: '#c72e08', text: 'Grade I Listed'}, + { color: '#e75b42', text: 'Grade II* Listed'}, + { color: '#ffbea1', text: 'Grade II Listed'}, + { color: '#858ed4', text: 'Locally Listed'}, + { color: '#85ffd4', text: 'Heritage at Risk'}, + { color: '#858eff', text: 'In World Heritage Site'}, + { color: '#8500d4', text: 'In Archaeological Priority Area'}, ] }, }], diff --git a/app/src/tiles/dataDefinition.ts b/app/src/tiles/dataDefinition.ts index 8a92a37a..ea821e78 100644 --- a/app/src/tiles/dataDefinition.ts +++ b/app/src/tiles/dataDefinition.ts @@ -145,15 +145,22 @@ const LAYER_QUERIES = { WHEN planning_list_grade = 'II*' THEN 'Grade II* Listed' WHEN planning_list_grade = 'II' THEN 'Grade II Listed' WHEN planning_local_list_url <> '' THEN 'Locally Listed' + WHEN planning_heritage_at_risk_url <> '' THEN 'Heritage at Risk' + WHEN planning_world_list_url <> '' THEN 'In World Heritage Site' + WHEN planning_in_apa_url <> '' THEN 'In Archaeological Priority Area' ELSE 'None' END ) AS listing_type, planning_in_conservation_area_url <> '' AS planning_in_conservation_area FROM buildings WHERE - planning_in_conservation_area_url <> '' + planning_list_grade IS NOT NULL + OR planning_in_conservation_area_url <> '' OR planning_local_list_url <> '' - OR planning_list_grade IS NOT NULL`, + OR planning_world_list_url <> '' + OR planning_heritage_at_risk_url <> '' + OR planning_in_apa_url <> '' + `, conservation_area: ` SELECT geometry_id