Skip to content

Commit 1b2273a

Browse files
authored
Fix map initial position (#3398)
Signed-off-by: Ayoub LABIDI <[email protected]>
1 parent 09536c3 commit 1b2273a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/components/network/network-map-panel.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
*/
77

8-
import type { Writable } from 'type-fest';
98
import {
109
type Coordinate,
1110
DRAW_EVENT,
@@ -71,8 +70,6 @@ import { useEquipmentMenu } from '../../hooks/use-equipment-menu';
7170
import useEquipmentDialogs from 'hooks/use-equipment-dialogs';
7271
import { getNominalVoltageColor } from 'utils/colors';
7372

74-
const INITIAL_POSITION = [0, 0] as const;
75-
const INITIAL_ZOOM = 9;
7673
const LABELS_ZOOM_THRESHOLD = 9;
7774
const ARROWS_ZOOM_THRESHOLD = 7;
7875
const EMPTY_ARRAY: any[] = [];
@@ -1121,8 +1118,6 @@ export const NetworkMapPanel = forwardRef<NetworkMapPanelRef, NetworkMapPanelPro
11211118
filteredNominalVoltages={filteredNominalVoltages}
11221119
labelsZoomThreshold={LABELS_ZOOM_THRESHOLD}
11231120
arrowsZoomThreshold={ARROWS_ZOOM_THRESHOLD}
1124-
initialPosition={INITIAL_POSITION as Writable<typeof INITIAL_POSITION>}
1125-
initialZoom={INITIAL_ZOOM}
11261121
lineFullPath={lineFullPath}
11271122
lineParallelPath={lineParallelPath}
11281123
lineFlowMode={lineFlowMode}

0 commit comments

Comments
 (0)