From ba7abe3b3c13fda23754099f009fbef016e3245c Mon Sep 17 00:00:00 2001 From: Quentin Roussel Date: Thu, 28 Mar 2024 17:49:45 +0100 Subject: [PATCH] removed zoom animation for initial zoom --- traque-front/components/team/map.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traque-front/components/team/map.jsx b/traque-front/components/team/map.jsx index 15b5132..5e70585 100644 --- a/traque-front/components/team/map.jsx +++ b/traque-front/components/team/map.jsx @@ -15,7 +15,7 @@ function MapPan(props) { useEffect(() => { if(!initialized && props.center) { - map.flyTo(props.center, DEFAULT_ZOOM); + map.flyTo(props.center, DEFAULT_ZOOM, {animate: false}); setInitialized(true) } },[props.center]);