Skip to content

Commit

Permalink
grass.jupyter: Ensure width and height in InteractiveMap are integers (
Browse files Browse the repository at this point in the history
  • Loading branch information
cwhite911 authored and Mahesh1998 committed Sep 19, 2024
1 parent 16c8cc0 commit 72274d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/grass/jupyter/interactivemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
"""
Expand Down

0 comments on commit 72274d6

Please sign in to comment.