]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Bounds should be treated as floating point
[rails.git] / app / views / site / index.html.erb
index 242890e28df73c769f658c068db52abb98280b3e..d378a6ff76a3fa68bd48d7f5377a87e01e47c1e7 100644 (file)
@@ -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