[openstreetmap/openstreetmap-website] Add coordinate precision function (PR #5581)

Tom Hughes notifications at github.com
Sun Feb 2 10:11:07 UTC 2025


@tomhughes commented on this pull request.



> @@ -211,11 +207,16 @@ OSM = {
     return Math.ceil(Math.log10(pixels / degrees));
   },
 
+  cropLocation: function (latLng, zoom = map.getZoom()) {

It might help to read https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History but in this case all it needed was `git rebase -i master` which would open an editor with a list of commits on the branch - then you can just change `pick` to `fixup` (or `f`) for the two later ones to merge them into the first one and save and exit the editor to finish.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5581#discussion_r1938453325
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5581/review/2588515121 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250202/f38dcfac/attachment.htm>


More information about the rails-dev mailing list