X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6c3a31d06c8b8dab8b141c5ae54aaad55614b721..235e77fc26fabcf92db09a1b3d965257621c846e:/app/views/site/_id.html.erb diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index 374cdbb80..d93ee091e 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -10,11 +10,11 @@ params.id = mapParams.object.type[0] + mapParams.object.id; mapParams = OSM.parseHash(location.hash); if (mapParams.center) { - params.map = mapParams.zoom + '/' + mapParams.center.lat + '/' + mapParams.center.lon; + params.map = mapParams.zoom + '/' + mapParams.center.lat + '/' + mapParams.center.lng; } } else { <% if @lat && @lon -%> - params.map = '16/<%= @lat %>/<%= @lng %>'; + params.map = '16/<%= @lat %>/<%= @lon %>'; <% else -%> params.map = (mapParams.zoom || 17) + '/' + mapParams.lat + '/' + mapParams.lon; <% end -%>