From 4e283c6de2541ea7b0c3d9baf6a8cb693ddecbfa Mon Sep 17 00:00:00 2001 From: damonsk Date: Fri, 31 May 2024 10:45:20 +0100 Subject: [PATCH] bugfix on pipeline movable didn't consider scalefactor - Progresses #178 --- frontend/src/components/map/MapCanvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/map/MapCanvas.js b/frontend/src/components/map/MapCanvas.js index 3c11edf..6098daf 100644 --- a/frontend/src/components/map/MapCanvas.js +++ b/frontend/src/components/map/MapCanvas.js @@ -447,6 +447,7 @@ function MapCanvas(props) { mapStyleDefs={mapStyleDefs} setHighlightLine={setHighlightLine} linkingFunction={clicked} + scaleFactor={scaleFactor} /> ) : ( )} @@ -619,7 +621,6 @@ function MapCanvas(props) { onClick={props.shouldHideNav} color={textColour[props.mapStyleDefs.className]} aria-label={props.hideNav ? 'Exit Fullscreen' : 'Fullscreen'} - // sx={{ position: 'absolute', right: '10px', top: '0' }} > {props.hideNav ? (