Commit d8c1fc9e authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

fixed call of CrosshairStyle dialog


Signed-off-by: Benjamin Jakimow's avatarBenjamin Jakimow benjamin.jakimow@geo.hu-berlin.de <benjamin.jakimow@geo.hu-berlin.de>
parent 67d5c824
...@@ -402,8 +402,7 @@ class MapCanvas(QgsMapCanvas): ...@@ -402,8 +402,7 @@ class MapCanvas(QgsMapCanvas):
if Qgis.QGIS_VERSION >= '3.16': if Qgis.QGIS_VERSION >= '3.16':
self.contextMenuAboutToShow.connect(self.populateContextMenu) self.contextMenuAboutToShow.connect(self.populateContextMenu)
self.mMapTools: MapCanvasMapTools = None
self.mMapTools = None
self.initMapTools() self.initMapTools()
self.mTimedRefreshPipeLine = dict() self.mTimedRefreshPipeLine = dict()
...@@ -1076,7 +1075,7 @@ class MapCanvas(QgsMapCanvas): ...@@ -1076,7 +1075,7 @@ class MapCanvas(QgsMapCanvas):
style = CrosshairDialog.getCrosshairStyle(parent=self, style = CrosshairDialog.getCrosshairStyle(parent=self,
mapCanvas=self, mapCanvas=self,
crosshair=self.mCrosshairItem.crosshairStyle) crosshairStyle=self.mCrosshairItem.crosshairStyle)
if isinstance(style, CrosshairStyle): if isinstance(style, CrosshairStyle):
self.setCrosshairStyle(style) self.setCrosshairStyle(style)
......
...@@ -27,7 +27,7 @@ from qgis.PyQt.QtWidgets import * ...@@ -27,7 +27,7 @@ from qgis.PyQt.QtWidgets import *
from qgis.core import QgsMapLayer, QgsRasterLayer, QgsVectorLayer, QgsWkbTypes, QgsProject from qgis.core import QgsMapLayer, QgsRasterLayer, QgsVectorLayer, QgsWkbTypes, QgsProject
from qgis.gui import QgsMapCanvas, QgsFontButton from qgis.gui import QgsMapCanvas, QgsFontButton
from eotimeseriesviewer import SpatialPoint from eotimeseriesviewer import SpatialPoint, SpatialExtent
from eotimeseriesviewer.mapcanvas import MapCanvas, MapCanvasInfoItem from eotimeseriesviewer.mapcanvas import MapCanvas, MapCanvasInfoItem
from eotimeseriesviewer.timeseries import TimeSeries from eotimeseriesviewer.timeseries import TimeSeries
......
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