From 1fbf3505d18ad5e86c1b6286bcd39ae8424eac25 Mon Sep 17 00:00:00 2001 From: Adam Tackett Date: Fri, 25 Oct 2024 14:25:12 -0700 Subject: [PATCH] revert starting zoom to default behavior Signed-off-by: Adam Tackett --- .../components/common/plots/service_map.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/public/components/trace_analytics/components/common/plots/service_map.tsx b/public/components/trace_analytics/components/common/plots/service_map.tsx index 816ba3c10..9d7a00410 100644 --- a/public/components/trace_analytics/components/common/plots/service_map.tsx +++ b/public/components/trace_analytics/components/common/plots/service_map.tsx @@ -179,14 +179,9 @@ export function ServiceMap({ }; const setZoomLimits = (networkInstance) => { - let lastZoomLevel = 0.5; + let lastZoomLevel = 1.0; const initialPosition = networkInstance.getViewPosition(); - networkInstance.moveTo({ - scale: lastZoomLevel, - position: initialPosition, - }); - networkInstance.on('zoom', (params) => { const zoomLevel = params.scale;