浏览代码

wxGUI/nviz: enable zoom to extent (reset view)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42633 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 年之前
父节点
当前提交
3f13a507ae
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 5 0
      gui/wxpython/gui_modules/nviz_mapdisp.py
  2. 0 1
      gui/wxpython/gui_modules/toolbars.py

+ 5 - 0
gui/wxpython/gui_modules/nviz_mapdisp.py

@@ -1103,3 +1103,8 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
         """!Get display instance"""
         """!Get display instance"""
         return self._display
         return self._display
         
         
+    def ZoomToMap(self):
+        """!Reset view
+        """
+        self.lmgr.nviz.OnResetView(None)
+

+ 0 - 1
gui/wxpython/gui_modules/toolbars.py

@@ -307,7 +307,6 @@ class MapToolbar(AbstractToolbar):
                      self.zoomout,
                      self.zoomout,
                      self.zoomback,
                      self.zoomback,
                      self.zoommenu,
                      self.zoommenu,
-                     self.zoomextent,
                      self.analyze,
                      self.analyze,
                      self.dec,
                      self.dec,
                      self.printmap):
                      self.printmap):