Commit de5dcc4e authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

fixed Issue #51

parent 787c0066
......@@ -14,7 +14,7 @@ name: timeseriesviewerplugin
# Python files that should be deployed with the plugin
# BJ: root dir only
python_files:
timeseriesviewerplugin.py __init__.py
__init__.py
# The main dialog file that is loaded (not compiled)
# BJ: we load all *ui files during runtime
......
......@@ -799,7 +799,7 @@ class MapCanvas(QgsMapCanvas):
lqgis.setRenderer(l.renderer().clone())
#grpNode.addLayer(lqgis)
if isinstance(l, QgsVectorLayer):
lqgis = iface.addVectorLayer(l.source(), l.name())
lqgis = iface.addVectorLayer(l.source(), l.name(), 'ogr')
#lqgis = QgsVectorLayer(l.source(), l.name(), 'ogr', False)
lqgis.setRendererV2(l.renderer().clone())
#grpNode.addLayer(lqgis)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment