L.hash expects parseHash to return false if there isn't a location
This commit is contained in:
parent
c798962cda
commit
e2f55c1c1b
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,9 @@ OSM = {
|
|||
if (hash.indexOf('#') === 0) {
|
||||
hash = hash.substr(1);
|
||||
}
|
||||
if (hash === '') {
|
||||
return false;
|
||||
}
|
||||
hash = querystring.parse(hash);
|
||||
var args = L.Hash.parseHash(hash.map || '') || {};
|
||||
if (hash.layers) args.layers = hash.layers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue