-
-
Notifications
You must be signed in to change notification settings - Fork 497
Extract creation of marker and polygon for waypoints to remove duplicated code for OSM map #2158
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
Extract creation of marker and polygon for waypoints to remove duplicated code for OSM map #2158
Conversation
|
/run-tests |
|
Build & Test complete. ✨ |
|
Just needs a little ktfmt ( |
|
Thanks for letting me know, formatted 👍 |
|
/run-tests |
|
Build & Test complete. ✨ |
|
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. |
|
/run-tests |
|
Build & Test complete. ✨ |
Extract Marker and Polygon creation for OSM map to separate functions as the functions
addRegionandreDrawRegionsboth had effectively the same implementations with only a slight difference.The difference between them is
addRegionhad 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.