mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-27 09:24:45 +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;
|
||||
}
|
||||
});
|
||||
this.map.fitBounds(bounds);
|
||||
if(bounds) {
|
||||
this.map.fitBounds(bounds);
|
||||
} else {
|
||||
this.map.fitWorld();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
this.map.fitWorld();
|
||||
|
Loading…
Reference in New Issue
Block a user