Skip to content
Permalink
Browse files

Fix layer visibility settings

  • Loading branch information
Sandro Santilli
Sandro Santilli committed Nov 7, 2012
1 parent 3c5de39 commit 44753cbc3b4928d9b502415c21711352991b27af
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/__init__.py
@@ -110,32 +110,32 @@ def run(item, action, mainwindow):
uri.setDataSource(toponame, 'node', 'geom', '', 'node_id')
layer = QgsVectorLayer(uri.uri(), u'%s.nodes' % toponame, provider)
layer.loadNamedStyle(os.path.join(template_dir, 'node.qml'))
legend.setLayerVisible(layer, False)
registry.addMapLayer(layer)
legend.setLayerVisible(layer, False)
legend.moveLayer(layer, group)

# edge
uri.setDataSource(toponame, 'edge_data', 'geom', '', 'edge_id')
layer = QgsVectorLayer(uri.uri(), u'%s.edges' % toponame, provider)
layer.loadNamedStyle(os.path.join(template_dir, 'edge_style.qml'))
legend.setLayerVisible(layer, False)
registry.addMapLayer(layer)
legend.setLayerVisible(layer, False)
legend.moveLayer(layer, group)

# face_left
uri.setDataSource(toponame, 'edge_data', 'geom', '', 'edge_id')
layer = QgsVectorLayer(uri.uri(), u'%s.face_left' % toponame, provider)
layer.loadNamedStyle(os.path.join(template_dir, 'face_left.qml'))
legend.setLayerVisible(layer, False)
registry.addMapLayer(layer)
legend.setLayerVisible(layer, False)
legend.moveLayer(layer, group)

# face_right
uri.setDataSource(toponame, 'edge_data', 'geom', '', 'edge_id')
layer = QgsVectorLayer(uri.uri(), u'%s.face_right' % toponame, provider)
layer.loadNamedStyle(os.path.join(template_dir, 'face_right.qml'))
legend.setLayerVisible(layer, False)
registry.addMapLayer(layer)
legend.setLayerVisible(layer, False)
legend.moveLayer(layer, group)

# next_left

0 comments on commit 44753cb

Please sign in to comment.
You can’t perform that action at this time.