From afb4fedbd7b608dfbd2038f853daef26751fc248 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 31 Oct 2011 10:08:49 +0000 Subject: [PATCH 1/1] Bounds should be treated as floating point --- app/views/site/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.1