Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/near you overlay #7

Merged
merged 3 commits into from
Nov 4, 2024
Merged

Fix/near you overlay #7

merged 3 commits into from
Nov 4, 2024

Conversation

ArondenOuden
Copy link
Contributor

@ArondenOuden ArondenOuden commented Oct 4, 2024

I created this branch to fix the approximate address api calls to openstreetmap that were failing.

I looked into switching from XMLHttpRequests to fetch, which is more modern.
Switching to fetch 'magically' fixed the api call bug that I was having.

After that, I refactored all the overlay code to use fetch. Then refactored again by creating helper functions to make the code a lot more readable.

P.S.
I do understand that refactoring strictly speaking isn't what this branch was made for, but refactoring unexpectedly solved my bug and I just went along and rewrote the whole thing because it was quite a mess.

Copy link
Member

@SilasPeters SilasPeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do understand that refactoring strictly speaking isn't what this branch was made for, but refactoring unexpectedly solved my bug and I just went along and rewrote the whole thing because it was quite a mess.

Life is what happens while you're busy making other plans.

@ArondenOuden ArondenOuden merged commit b2db5cd into development Nov 4, 2024
1 check passed
@ArondenOuden ArondenOuden deleted the fix/near-you-overlay branch November 4, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants