From 2dc55d1bc3b0bbff76222b244a73d6ebbc18e599 Mon Sep 17 00:00:00 2001 From: JohannaPeanut <76495099+JohannaPeanut@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:07:48 +0100 Subject: [PATCH] Survey: show full BB map if no location in response --- src/survey-public/radnetz-brandenburg/data/feedback.ts | 2 +- .../feedback/SurveyFeedbackWithLocationOverviewMap.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/survey-public/radnetz-brandenburg/data/feedback.ts b/src/survey-public/radnetz-brandenburg/data/feedback.ts index 10409847..c205fb14 100644 --- a/src/survey-public/radnetz-brandenburg/data/feedback.ts +++ b/src/survey-public/radnetz-brandenburg/data/feedback.ts @@ -100,7 +100,7 @@ export const feedbackDefinition: TFeedback = { }, config: { bounds: [ - 10.942243895210964, 53.676969136097426, 13.465112375167422, 52.32208889767472, + 10.634343374814875, 50.99884540733649, 15.169801938047982, 53.769864338023126, ], }, legend: { diff --git a/src/survey-responses/components/feedback/SurveyFeedbackWithLocationOverviewMap.tsx b/src/survey-responses/components/feedback/SurveyFeedbackWithLocationOverviewMap.tsx index 53caee09..d728056e 100644 --- a/src/survey-responses/components/feedback/SurveyFeedbackWithLocationOverviewMap.tsx +++ b/src/survey-responses/components/feedback/SurveyFeedbackWithLocationOverviewMap.tsx @@ -64,7 +64,6 @@ export const SurveyFeedbackWithLocationOverviewMap: React.FC = ({ id="mainMap" initialViewState={{ bounds: defaultViewState, - fitBoundsOptions: { padding: 50 }, }} mapStyle={selectedLayer === "vector" ? vectorStyle : satelliteStyle} RTLTextPlugin={false}