[openstreetmap/openstreetmap-website] Reduce individual parsing of number strings (PR #5598)
Anton Khorev
notifications at github.com
Mon Feb 3 15:09:35 UTC 2025
@AntonKhorev commented on this pull request.
> }
var hash = OSM.parseHash(location.hash);
const loc = Cookies.get("_osm_location")?.split("|");
+ function parseBounds({ minlon, minlat, maxlon, maxlat }) {
+ return L.latLngBounds([minlat, minlon], [maxlat, maxlon]);
+ }
+
Why is this function called `parseBounds`?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5598#pullrequestreview-2590212454
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5598/review/2590212454 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250203/1a0b32f6/attachment.htm>
More information about the rails-dev
mailing list