diff --git a/python/grass/jupyter/interactivemap.py b/python/grass/jupyter/interactivemap.py index b6a5ccfb3e8..085c2843fe7 100644 --- a/python/grass/jupyter/interactivemap.py +++ b/python/grass/jupyter/interactivemap.py @@ -295,8 +295,8 @@ def _import_ipyleaflet(error): import xyzservices # pylint: disable=import-outside-toplevel # Store height and width - self.width = width - self.height = height + self.width = int(width) + self.height = int(height) self._controllers = {} # Store vector and raster name @@ -745,7 +745,7 @@ class InteractiveQueryController: _ipywidgets: The ipywidgets module. raster_name: The name of the raster layer. vector_name: The name of the vector layer. - width: The width of the map. + width: The width of the map as an int. query_control: The query control. """