From da0727b57d271caa2830cac7b1e7d5b447ef3401 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Fri, 9 Dec 2022 14:29:25 +0100 Subject: [PATCH] add switchToBuildingProtectionMapStyle --- app/src/frontend/building/data-containers/planning.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/frontend/building/data-containers/planning.tsx b/app/src/frontend/building/data-containers/planning.tsx index c36e7c06..06efde46 100644 --- a/app/src/frontend/building/data-containers/planning.tsx +++ b/app/src/frontend/building/data-containers/planning.tsx @@ -52,6 +52,10 @@ const PlanningView: React.FunctionComponent = (props) => { const switchToExpectedApplicationMapStyle = (e) => { e.preventDefault(); props.onMapColourScale('community_expected_planning_application_total') + } + const switchToBuildingProtectionMapStyle = (e) => { + e.preventDefault(); + props.onMapColourScale('planning_combined') } const { flood, floodSwitchOnClick, housing, housingSwitchOnClick, creative, creativeSwitchOnClick, vista, vistaSwitchOnClick } = useDisplayPreferences(); const communityLinkUrl = `/${props.mode}/${Category.Community}/${props.building.building_id}`; @@ -215,7 +219,7 @@ const PlanningView: React.FunctionComponent = (props) => { This section provides information on heritage assets and building protection. To produce the most accurate spatial map possible we need to combine official data with crowdsourced data. Help us create this map together by checking, verifying and adding information. -