Skip to content

Conversation

@otwacam
Copy link
Contributor

@otwacam otwacam commented Dec 11, 2025

Extract Marker and Polygon creation for OSM map to separate functions as the functions addRegion and reDrawRegions both had effectively the same implementations with only a slight difference.
The difference between them is addRegion had an additional filter so that the polygon would only be drawn if the points were valid coordinates whereas "reDrawRegions" did not have this check. This filter will now be applied in both cases.

@growse
Copy link
Collaborator

growse commented Dec 11, 2025

/run-tests

@github-actions
Copy link

Build & Test complete. ✨
View workflow run

@growse
Copy link
Collaborator

growse commented Dec 11, 2025

Just needs a little ktfmt (just format) and that'll sort the build grumble.

@otwacam
Copy link
Contributor Author

otwacam commented Dec 11, 2025

Thanks for letting me know, formatted 👍

@growse
Copy link
Collaborator

growse commented Dec 21, 2025

/run-tests

@github-actions
Copy link

Build & Test complete. ✨
View workflow run

@growse
Copy link
Collaborator

growse commented Dec 21, 2025

Hmm, ktfmt still complaining. Can you doublecheck?

@otwacam
Copy link
Contributor Author

otwacam commented Dec 21, 2025

Not quite sure why IDE ktfmt did not catch these. Ran formatter via CLI this time which made the changes. Should be good now hopefully.

@growse
Copy link
Collaborator

growse commented Dec 31, 2025

/run-tests

@growse growse added the contribution-from-a-human A human made this. label Dec 31, 2025
@github-actions
Copy link

Build & Test complete. ✨
View workflow run

@growse growse added this pull request to the merge queue Dec 31, 2025
Merged via the queue into owntracks:master with commit 18c5fe4 Dec 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution-from-a-human A human made this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants