-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Load correct nearby location on launch (#128)
When the app was started with location permissions already granted, nearby transit was instead loading the default camera location, rather that the phone's current GPS location. The NearbyTransitLocationProvider was implemented in a silly way where it was effectively immutable, and on app startup, `currentLocation` and `viewportProvider.viewport` were both changing and running their `onChange` at the same time, so the current location was getting overridden by the default camera state.
- Loading branch information
Showing
4 changed files
with
92 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.