Commit 1d61e0d5 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

fixed visualizaton of temp map canvases


Signed-off-by: Benjamin Jakimow's avatarBenjamin Jakimow benjamin.jakimow@geo.hu-berlin.de <benjamin.jakimow@geo.hu-berlin.de>
parent 79e7fa1f
Pipeline #16558 failed with stage
in 8 seconds
==============
Changelog
==============
2021-02-12 (version 1.17):
2021-02-23 (version 1.17):
* fixes to run with QGIS 3.18+
* move to next/previous observation with arrow right/left
* move to next/previous observation window with CTRL + arrow right/left or A/D
* move to last/first observation with End/Pos1 or ALT + A/D
......
......@@ -2008,9 +2008,9 @@ class MapWidget(QFrame):
self.mSyncLock = False
def _createMapCanvas(self, parent=None, is_visible: bool = True) -> MapCanvas:
mapCanvas = MapCanvas(parent=parent)
mapCanvas.setVisible(is_visible)
def _createMapCanvas(self, parent=None) -> MapCanvas:
mapCanvas = MapCanvas(parent)
mapCanvas.setVisible(False)
mapCanvas.setMapLayerStore(self.mMapLayerStore)
mapCanvas.mInfoItem.setTextFormat(self.mapTextFormat())
......@@ -2083,6 +2083,7 @@ class MapWidget(QFrame):
self.mMapRefreshTimer.stop()
for canvas in self.mGrid.findChildren(MapCanvas):
self._disconnectCanvasSignals(canvas)
self.mGrid.parentWidget().setVisible(False)
self.clearCanvasGrid()
nc = self.mMapViewColumns
......@@ -2096,17 +2097,17 @@ class MapWidget(QFrame):
for col in range(self.mMapViewColumns):
gridrow = (iMV * self.mMapViewRows) + row
gridcol = col
c: MapCanvas = self._createMapCanvas(is_visible=visible)
c: MapCanvas = self._createMapCanvas()
assert isinstance(c, MapCanvas)
# c.setFixedSize(self.mMapSize)
c.setTSD(None)
c.setMapView(mv)
self.mGrid.addWidget(c, gridrow, gridcol)
c.setVisible(visible)
self.mCanvases[mv].append(c)
self._updateCanvasDates()
self._updateSliderCss()
self.mGrid.parentWidget().setVisible(True)
self.mMapRefreshTimer.start()
def _updateWidgetSize(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment