Skip to content

Commit

Permalink
Revert "Make map always zoom smoothly"
Browse files Browse the repository at this point in the history
This reverts commit f81d448.
  • Loading branch information
CatMe0w committed Aug 12, 2024
1 parent 7c1577b commit e05b6f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web/src/ferrostar-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!);
}
Expand Down

0 comments on commit e05b6f2

Please sign in to comment.