瀏覽代碼

wxGUI: implement OnRender method in SingleMapFrame

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50528 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 年之前
父節點
當前提交
412b15245c
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      gui/wxpython/gui_core/mapdisp.py

+ 8 - 0
gui/wxpython/gui_core/mapdisp.py

@@ -406,6 +406,14 @@ class SingleMapFrame(MapFrameBase):
         """!Returns map window"""
         """!Returns map window"""
         return self.MapWindow
         return self.MapWindow
         
         
+    def OnRender(self, event):
+        """!Re-render map composition (each map layer)
+        """
+        self.GetWindow().UpdateMap(render = True, renderVector = True)
+        
+        # update statusbar
+        self.StatusbarUpdate()
+        
 
 
 class DoubleMapFrame(MapFrameBase):
 class DoubleMapFrame(MapFrameBase):
     """! Frame with two map windows.
     """! Frame with two map windows.