[openstreetmap/openstreetmap-website] Clean OSM.formatHash calls (PR #5887)

Tom Hughes notifications at github.com
Tue May 6 21:43:11 UTC 2025


@tomhughes commented on this pull request.



> +    return "" unless params[:lat].present? && params[:lon].present?
+
+    "#map=#{params[:zoom] || 17}/#{params[:lat]}/#{params[:lon]}"

Sorry yes you're right so maybe string interpolation is easier for that...

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

Message ID: <openstreetmap/openstreetmap-website/pull/5887/review/2819746289 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250506/5d45fff8/attachment.htm>


More information about the rails-dev mailing list