diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 6cdabc40..b923e2b3 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -697,6 +697,7 @@ L.U.Map.include({ const datalayer = this.defaultDataLayer(), feature = datalayer.getFeatureByIndex(-1) if (feature) feature.zoomTo() + else this._setDefaultCenter() }) } else { this._setDefaultCenter()