Extract creation of marker and polygon for waypoints to remove duplicated code for OSM map
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.
/run-tests
Build & Test complete. :sparkles: View workflow run
Just needs a little ktfmt (just format) and that'll sort the build grumble.
Thanks for letting me know, formatted 👍
/run-tests
Build & Test complete. :sparkles: View workflow run
Hmm, ktfmt still complaining. Can you doublecheck?
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.