From: Tom Hughes Date: Wed, 22 Dec 2010 00:39:12 +0000 (+0000) Subject: Don't look any further for a location if we are given a bounding box X-Git-Tag: live~6287^2^2~18 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/60cdce60b57e97fb1a607a6c552be6931740e618 Don't look any further for a location if we are given a bounding box --- diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 31834bf7c..eac166c91 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -66,18 +66,17 @@ if params['node'] or params['way'] or params['relation'] end end +# Decide on a lat lon to initialise the map with. Various ways of doing this if params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] bbox = true minlon = h(params['minlon']) minlat = h(params['minlat']) maxlon = h(params['maxlon']) maxlat = h(params['maxlat']) + layers = h(params['layers']) box = true if params['box']=="yes" object_zoom = false -end - -# Decide on a lat lon to initialise the map with. Various ways of doing this -if params['lon'] and params['lat'] +elsif params['lon'] and params['lat'] lon = h(params['lon']) lat = h(params['lat']) zoom = h(params['zoom'] || '5')