Bounds should be treated as floating point

This commit is contained in:
Tom Hughes 2011-10-31 10:08:49 +00:00
parent bed2405973
commit afb4fedbd7

View 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