Recognise locations in the hash correctly

This commit is contained in:
Tom Hughes 2013-08-06 10:23:51 +01:00
parent feeb135760
commit afc46bcd9b

View file

@ -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;