Commit Graph
20 Commits
Author SHA1 Message Date
Ryan Brown 8439d9bbb6 Fix late background alerts and cache starvation
- Increase background refresh threshold: Raised the edge distance check in GpsController from 1000m to 2500m to guarantee new Overpass data is fetched well before the user drives out of the cached bounding box.

- Fix bounding box race condition: Added await to the background fetch handler in MapView so tracking bounds only shift forward after the network request successfully finishes.

- Make debounced fetches awaitable: Refactored fetchAndUpdate in NodeProviderWithCache to return a Future<void> using a Completer, bridging the 400ms debounce timer.

- Prevent hanging futures: Added state checks for _activeCompleter to instantly resolve canceled network requests during rapid map panning, preventing fatal StateError crashes and infinite UI hangs.
2026-08-28 12:03:39 -04:00
Ryan Brown 3f118a77c4 Fix branch after android testing. Add background data refresh, not just location refresh.
Tested on a Pixel 10 Pro. These changes were needed to work on real hardware. Also, which background location updating was working, the data was not refreshing in the background. This also adds that. It will pull nodes in a 5km area around your location and update when you within 1km of the area. These values may need to be adjusted if there is increased load on the servers.
2026-08-27 10:55:11 -07:00
Joeseph Ferland 51037f3710 feat: Added Notifications to app 2026-08-27 10:55:11 -07:00
stopflock af2a08bf3d better limits for min/max zoom validations, separate lat+lon validation, less verbose comments 2026-07-25 16:42:38 -05:00
stopflock 1cfca663a6 catch and correct possible bad values for lat/lon, add tests 2026-07-25 16:32:08 -05:00
reb1995 2ba0667a76 Update gps_controller.dart
Remove extra import that isn't required. Now passes flutter analyze.
2026-04-12 21:07:26 -04:00
reb1995 d7be022a11 Update gps_controller to not require location accuracy in android.
Adds basic target matching. If Android Do... Else use old code.
2026-04-06 13:09:41 -04:00
Doug BorgandClaude Opus 4.6 f0f23489b5 Fix map jitter when touching map during follow-me animations
Cancel in-progress follow-me animations on pointer-down and suppress
new ones while any pointer is on the map. Without this, GPS position
updates trigger 600ms animateTo() calls that fight with the user's
stationary finger, causing visible wiggle — especially at low zoom
where small geographic shifts cover more pixels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 02:02:51 -07:00
stopflock ae354c43a4 drop approx location support, restore follow me mode on sheet close 2025-12-24 15:29:32 -06:00
stopflock 89fb0d9bbd Trying again to fix GPS. 2025-12-22 16:35:02 -06:00
stopflock 9db7c11a49 Fix approximate location after second GPS refactor 2025-12-17 18:13:39 -06:00
stopflock f8643da8e2 Refactor GPS again, fix losing GPS lock 2025-12-17 14:49:13 -06:00
stopflock 5312456a15 Better location / gps maybe 2025-12-12 16:26:50 -06:00
stopflock 27c404687a Fix north-up UX 2025-10-22 18:46:48 -05:00
stopflock c8e2727f69 bump ver, get rid of buggy north-lock 2025-10-22 17:36:34 -05:00
stopflock cd2ab00042 North-up compass and rotation lock 2025-10-22 15:27:28 -05:00
stopflock 71fa212d71 More camera -> node, notifications for approaching 2025-09-29 19:22:22 -05:00
stopflock c4c1505253 refactor follow me mode state handling 2025-08-29 11:08:50 -05:00
stopflock 42c03eca7d fix follow me not turning off 2025-08-29 10:37:19 -05:00
stopflock 6db691dbeb Break out follow-me / gps stuff from map_view 2025-08-28 23:50:08 -05:00