From: Tom Hughes Date: Mon, 31 Oct 2011 10:08:49 +0000 (+0000) Subject: Bounds should be treated as floating point X-Git-Tag: live~6268 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/afb4fedbd7b608dfbd2038f853daef26751fc248?ds=sidebyside;hp=bed240597382b8af6a0a0762c8085a07994f6ba0 Bounds should be treated as floating point --- 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