Recognise locations in the hash correctly
This commit is contained in:
parent
feeb135760
commit
afc46bcd9b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue