X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f9d714dfd36fa56ced4c0a99a6e59c945ff89cca..87782088bbe299a7b6578be57e6b89a8fd125770:/app/assets/javascripts/osm.js.erb 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;