From e05b6f2e321a25bb3c67c4b0a92e8ff5503a98f6 Mon Sep 17 00:00:00 2001 From: CatMe0w Date: Sun, 11 Aug 2024 21:34:39 -0600 Subject: [PATCH] Revert "Make map always zoom smoothly" This reverts commit f81d448954dca505a11356304fca97fbe5d5bc1c. --- web/src/ferrostar-core.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web/src/ferrostar-core.ts b/web/src/ferrostar-core.ts index 59431248..9e0aaca0 100644 --- a/web/src/ferrostar-core.ts +++ b/web/src/ferrostar-core.ts @@ -204,10 +204,7 @@ export class FerrostarCore extends LitElement { }, }); - this.map?.easeTo({ - center: route.geometry[0], - bearing: startingLocation.courseOverGround?.degrees || 0, - }); + this.map?.setCenter(route.geometry[0]); this.currentLocationMapMarker = new maplibregl.Marker().setLngLat(route.geometry[0]).addTo(this.map!); }