mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-05 04:18:01 +00:00
Fix bug when fitting to non-extistent bounds
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user