diff --git a/lonboard/_map.py b/lonboard/_map.py index 928228cd..4d081e7c 100644 --- a/lonboard/_map.py +++ b/lonboard/_map.py @@ -545,6 +545,9 @@ def inner(fp): title=title or "Lonboard export", template=_HTML_TEMPLATE, drop_defaults=False, + # Necessary to pass the state of _this_ specific map. Otherwise, the + # state of all known widgets will be included, ballooning the file size. + state=self.get_state(), ) if filename is None: