mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-29 07:20:47 +00:00
Fix bug when fitting to non-extistent bounds
This commit is contained in:
parent
65ac272832
commit
fbcea2e26f
@ -242,7 +242,11 @@ GeomapWidget.prototype.refreshMap = function() {
|
|||||||
bounds = featureBounds;
|
bounds = featureBounds;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if(bounds) {
|
||||||
this.map.fitBounds(bounds);
|
this.map.fitBounds(bounds);
|
||||||
|
} else {
|
||||||
|
this.map.fitWorld();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.map.fitWorld();
|
this.map.fitWorld();
|
||||||
|
Loading…
Reference in New Issue
Block a user