Sfoglia il codice sorgente

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 anni fa
parent
commit
3edf4afac6
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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':