X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/16f5a5ac0c674b258996fcbde1c3fda2e651906a..235e77fc26fabcf92db09a1b3d965257621c846e:/app/views/site/_id.html.erb diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index 5e7fdd04c..d93ee091e 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -10,13 +10,13 @@ params.id = mapParams.object.type[0] + mapParams.object.id; mapParams = OSM.parseHash(location.hash); if (mapParams.center) { - params.map = mapParams.zoom + '/' + mapParams.center.lng + '/' + mapParams.center.lat; + params.map = mapParams.zoom + '/' + mapParams.center.lat + '/' + mapParams.center.lng; } } else { <% if @lat && @lon -%> - params.map = '16/<%= @lon %>/<%= @lat %>'; + params.map = '16/<%= @lat %>/<%= @lon %>'; <% else -%> - params.map = (mapParams.zoom || 17) + '/' + mapParams.lon + '/' + mapParams.lat; + params.map = (mapParams.zoom || 17) + '/' + mapParams.lat + '/' + mapParams.lon; <% end -%> } @@ -25,10 +25,12 @@ if (hashParams.background) { params.background = hashParams.background; } - if (hashParams.comment) { params.comment = hashParams.comment; } + if (hashParams.offset) { + params.offset = hashParams.offset; + } <% if params[:gpx] -%> params.gpx = '<%= trace_data_url(params[:gpx], :format => :xml) %>';