diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index 46d1fee7..0fd5fbfc 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -253,9 +253,11 @@ L.U.DataLayer = L.Evented.extend({ // Retrocompat if (this.options.remoteData && this.options.remoteData.from) { this.options.fromZoom = this.options.remoteData.from + delete this.options.remoteData.from } if (this.options.remoteData && this.options.remoteData.to) { this.options.toZoom = this.options.remoteData.to + delete this.options.remoteData.to } this.backupOptions() this.connectToMap()