From: Tom Hughes Date: Tue, 6 Aug 2013 09:23:51 +0000 (+0100) Subject: Recognise locations in the hash correctly X-Git-Tag: live~4855 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/afc46bcd9bbfae631ad0bca1600cf44ac330c653 Recognise locations in the hash correctly --- diff --git a/app/assets/javascripts/osm.js.erb b/app/assets/javascripts/osm.js.erb index 409cda8d8..e414d26ff 100644 --- a/app/assets/javascripts/osm.js.erb +++ b/app/assets/javascripts/osm.js.erb @@ -75,7 +75,7 @@ OSM = { var hash = OSM.parseHash(location.hash); // Decide on a map starting position. Various ways of doing this. - if (hash.lat && hash.lon) { + if (hash.center) { mapParams.lon = hash.center.lng; mapParams.lat = hash.center.lat; mapParams.zoom = hash.zoom;