[openstreetmap/openstreetmap-website] Refactor more of the internal coordiante usage to `{ lat, lng }` (PR #7039)
Frank Elsinga
notifications at github.com
Sun Apr 26 16:47:45 UTC 2026
@CommanderStorm commented on this pull request.
> @@ -141,7 +141,9 @@ L.OSM.Map = L.Map.extend({
const params = {};
if (marker && this.hasLayer(marker)) {
- [params.mlat, params.mlon] = OSM.cropLocation(marker.getLatLng(), this.getZoom());
+ const { lat, lng } = OSM.cropLocation(marker.getLatLng(), this.getZoom());
I would like to not "be clever" on this. Seems like obvuscation..
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7039#discussion_r3143809406
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7039/review/4177177049 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260426/bcd0b763/attachment-0001.htm>
More information about the rails-dev
mailing list