X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/81408141e9901b6f30a59b5e4ecac66bf1fde4ae..30f9f95ef6f6fd0fa91e343094cdd5309213ff7a:/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) %>';