diff --git a/eotimeseriesviewer/main.py b/eotimeseriesviewer/main.py
index 7ae8cd3080d9f121e8b4730e0dd4129fb1e8f45d..9dcde82d130cb6591348af70d933dd5526683026 100644
--- a/eotimeseriesviewer/main.py
+++ b/eotimeseriesviewer/main.py
@@ -754,10 +754,10 @@ class TimeSeriesViewer(QgisInterface, QObject):
         iface = qgis.utils.iface
         assert isinstance(iface, QgisInterface)
 
-        self.ui.actionImportExtent.triggered.connect(lambda: self.spatialTemporalVis.setSpatialExtent(SpatialExtent.fromMapCanvas(iface.mapCanvas())))
-        self.ui.actionExportExtent.triggered.connect(lambda: iface.mapCanvas().setExtent(self.spatialTemporalVis.spatialExtent().toCrs(iface.mapCanvas().mapSettings().destinationCrs())))
-        self.ui.actionExportCenter.triggered.connect(lambda: iface.mapCanvas().setCenter(self.spatialTemporalVis.spatialExtent().spatialCenter()))
-        self.ui.actionImportCenter.triggered.connect(lambda: self.spatialTemporalVis.setSpatialCenter(SpatialPoint.fromMapCanvasCenter(iface.mapCanvas())))
+        self.ui.actionImportExtent.triggered.connect(lambda: self.setSpatialExtent(SpatialExtent.fromMapCanvas(iface.mapCanvas())))
+        self.ui.actionExportExtent.triggered.connect(lambda: iface.mapCanvas().setExtent(self.spatialExtent().toCrs(iface.mapCanvas().mapSettings().destinationCrs())))
+        self.ui.actionExportCenter.triggered.connect(lambda: iface.mapCanvas().setCenter(self.spatialCenter().toCrs(iface.mapCanvas().mapSettings().destinationCrs())))
+        self.ui.actionImportCenter.triggered.connect(lambda: self.setSpatialCenter(SpatialPoint.fromMapCanvasCenter(iface.mapCanvas())))
 
         def onSyncRequest(qgisChanged:bool):
             if self.ui.optionSyncMapCenter.isChecked():
@@ -865,7 +865,18 @@ class TimeSeriesViewer(QgisInterface, QObject):
         """
         self.mapWidget().setSpatialCenter(spatialPoint)
 
+    def spatialExtent(self)->SpatialExtent:
+        """
+        Returns the map extent
+        :return: SpatialExtent
+        """
+        return self.mapWidget().spatialExtent()
+
     def spatialCenter(self)->SpatialPoint:
+        """
+        Returns the map center
+        :return: SpatialPoint
+        """
         return self.mapWidget().spatialCenter()
 
     def setCurrentLocation(self, spatialPoint:SpatialPoint, mapCanvas:QgsMapCanvas=None):