[openstreetmap/openstreetmap-website] Fixed displacing points specified from context menu (PR #4904)
Anton Khorev
notifications at github.com
Thu Jul 4 03:41:46 UTC 2024
@AntonKhorev commented on this pull request.
> - var precision = OSM.zoomPrecision(map.getZoom());
- input.val(ll.lat.toFixed(precision) + ", " + ll.lng.toFixed(precision));
This code was used by `$("#map").on("drop" ...` to populate an input when the marker next to the input is dragged and dropped on the map.
What happens now:
[Screencast from 04.07.2024 06:35:02.webm](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/9d85463c-aeb6-4007-87f9-32396d413cf7)
What used to happen:
[Screencast from 04.07.2024 06:38:26.webm](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/16a35160-cc5b-46f3-acad-ccfcb9c8c0b0)
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4904#pullrequestreview-2157889034
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4904/review/2157889034 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240703/34ee46fc/attachment.htm>
More information about the rails-dev
mailing list