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

Marwin Hochfelsner notifications at github.com
Tue May 6 19:18:24 UTC 2025


@hlfan commented on this pull request.



> @@ -23,6 +23,12 @@ def result_to_html(result)
     safe_join(html)
   end
 
+  def map_hash(params)
+    return "" unless params[:lat].present? && params[:lon].present?
+
+    "#map=#{params[:zoom].to_i || 17}/#{params[:lat].to_f}/#{params[:lon].to_f}"

Interesting - I can't either now... but I remember some error before I made this PR. But I'm not complaining.

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

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


More information about the rails-dev mailing list