X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/bed240597382b8af6a0a0762c8085a07994f6ba0..afb4fedbd7b608dfbd2038f853daef26751fc248:/app/views/site/index.html.erb?ds=sidebyside diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 242890e28..d378a6ff7 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -68,7 +68,7 @@ end # Decide on a lat lon to initialise the map with. Various ways of doing this if params[:bbox] bbox = true - minlon, minlat, maxlon, maxlat = params[:bbox].split(",").collect { |c| c.to_i } + minlon, minlat, maxlon, maxlat = params[:bbox].split(",").collect { |c| c.to_f } layers = params[:layers] box = true if params[:box] == "yes" object_zoom = false