Skip to content

Conversation

@karussell
Copy link
Member

@karussell karussell commented Aug 7, 2025

This should properly fix #282 including the 'tracking'.

Test https://graphhopper.com/maps-dev/current_location_tracking/

Input from #430 (thanks @oblonski!) and #279.

image

This is how it works (should be self-explanatory)

  1. After location button is pressed the current location is searched (gray location button pulses)
  2. Once found the location button appears blue and the map view is synchronized to the current location
  3. If the view is changes the location button looses its blue dot. Pressing it again synchs view again.
  4. If the view is synched and location button is pressed again then location fetching is stopped.
  5. If there is an error or no permission is granted or no location is enabled for the device, then a red question mark appears in the location button

@karussell karussell added this to the 0.8 milestone Aug 7, 2025
@karussell karussell added the enhancement New feature or request label Aug 7, 2025
@karussell karussell merged commit ce24228 into master Aug 11, 2025
2 checks passed
@karussell karussell deleted the current_location_tracking branch August 11, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zoom to current location button

3 participants