X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dae3dcf87edcfc0648cd0b93b069b0eee67d3ab7..6c3a31d06c8b8dab8b141c5ae54aaad55614b721:/app/views/site/_id.html.erb diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index ed36385bd..374cdbb80 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.lon; } } else { <% if @lat && @lon -%> - params.map = '16/<%= @lon %>/<%= @lat %>'; + params.map = '16/<%= @lat %>/<%= @lng %>'; <% else -%> - params.map = (mapParams.zoom || 17) + '/' + mapParams.lon + '/' + mapParams.lat; + params.map = (mapParams.zoom || 17) + '/' + mapParams.lat + '/' + mapParams.lon; <% end -%> }