浏览代码

wxGUI: add north arrow the same way as legend if typed in command console

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68612 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 年之前
父节点
当前提交
3edf4afac6
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gui/wxpython/lmgr/frame.py

+ 5 - 0
gui/wxpython/lmgr/frame.py

@@ -756,6 +756,11 @@ class GMFrame(wx.Frame):
                 self.GetMapDisplay().AddLegend(cmd=command, showDialog=False)
             else:
                 self.GetMapDisplay().AddLegend(showDialog=True)
+        elif layertype == 'northarrow':
+            if len(command) > 1:
+                self.GetMapDisplay().AddArrow(cmd=command, showDialog=False)
+            else:
+                self.GetMapDisplay().AddArrow(showDialog=True)
         elif layertype == 'redraw':
             self.GetMapDisplay().OnRender(None)
         elif layertype == 'export':