From 844686b02e1975f74baca83e5bca6cb665fc1b98 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Tue, 15 Oct 2024 15:57:11 +0100 Subject: [PATCH 1/2] refactor: alter icons to use trash instead of unicode --- .../src/@planx/components/MapAndLabel/Public/index.tsx | 1 + .../components/shared/Schema/InputFields/MapFieldInput.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx index cc7c2931e4..906ee78ced 100644 --- a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx +++ b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx @@ -278,6 +278,7 @@ const Root = () => { osProxyEndpoint={`${ import.meta.env.VITE_APP_API_URL }/proxy/ordnance-survey`} + resetControlImage="trash" osCopyright={ basemap === "OSVectorTile" ? `© Crown copyright and database rights ${new Date().getFullYear()} OS (0)100024857` diff --git a/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx b/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx index 7ddc054bc9..ed1077e971 100644 --- a/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx +++ b/editor.planx.uk/src/@planx/components/shared/Schema/InputFields/MapFieldInput.tsx @@ -87,6 +87,7 @@ export const MapFieldInput: React.FC> = (props) => { maxZoom={23} latitude={Number(passport?.data?._address?.latitude)} longitude={Number(passport?.data?._address?.longitude)} + resetControlImage="trash" osProxyEndpoint={`${ import.meta.env.VITE_APP_API_URL }/proxy/ordnance-survey`} From 1764de4eaf10cec930ddbecbaa9df24dcdc6b3fa Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Tue, 15 Oct 2024 15:58:32 +0100 Subject: [PATCH 2/2] revert: change to MaL comp --- .../src/@planx/components/MapAndLabel/Public/index.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx index 906ee78ced..cc7c2931e4 100644 --- a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx +++ b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx @@ -278,7 +278,6 @@ const Root = () => { osProxyEndpoint={`${ import.meta.env.VITE_APP_API_URL }/proxy/ordnance-survey`} - resetControlImage="trash" osCopyright={ basemap === "OSVectorTile" ? `© Crown copyright and database rights ${new Date().getFullYear()} OS (0)100024857`