diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 77ec2d05..18212ce9 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1448,6 +1448,14 @@ U.Map = L.Map.extend({ this.options.limitBounds.north = L.Util.formatNum(bounds.getNorth()) this.options.limitBounds.east = L.Util.formatNum(bounds.getEast()) boundsBuilder.fetchAll() + + const { subject, metadata, engine } = this.getSyncMetadata() + engine.update( + subject, + metadata, + 'options.limitBounds', + this.options.limitBounds + ) this.isDirty = true this.handleLimitBounds() },