Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/devel_convert_map_widget' into d…
Browse files Browse the repository at this point in the history
…evel_convert_map_widget
  • Loading branch information
QuimMoya committed Jul 8, 2024
2 parents 9241521 + 082278e commit 9fc00e4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/GridCal/Gui/Diagrams/MapWidget/map_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,13 @@ def tile_src(self, tile_src: Tiles):
Set the current tile source
:param tile_src: Tiles
"""
self._tile_src: Tiles = tile_src
self._tile_src.setCallback(self.on_tile_available)
if tile_src.TilesetName != self._tile_src.TilesetName: # avoid changing tilesets to themselves
self._tile_src: Tiles = tile_src
self._tile_src.setCallback(self.on_tile_available)

self.GotoLevelAndPosition(level=tile_src.min_level,
longitude=0.0,
latitude=0.0)
self.GotoLevelAndPosition(level=tile_src.min_level,
longitude=0.0,
latitude=0.0)

@property
def max_level(self):
Expand Down

0 comments on commit 9fc00e4

Please sign in to comment.