diff --git a/ORStools/gui/ORStoolsDialog.py b/ORStools/gui/ORStoolsDialog.py index 39e119b7..3f5e0623 100644 --- a/ORStools/gui/ORStoolsDialog.py +++ b/ORStools/gui/ORStoolsDialog.py @@ -230,6 +230,11 @@ def run_gui_control(self): layer_out.dataProvider().addAttributes(directions_core.get_fields()) layer_out.updateFields() + # style output layer + qml_path = os.path.join(os.path.dirname(__file__), 'linestyle.qml') + layer_out.loadNamedStyle(qml_path, True) + layer_out.triggerRepaint() + # Associate annotations with map layer, so they get deleted when layer is deleted for annotation in self.dlg.annotations: # Has the potential to be pretty cool: instead of deleting, associate with mapLayer diff --git a/ORStools/gui/linestyle.qml b/ORStools/gui/linestyle.qml new file mode 100644 index 00000000..63356505 --- /dev/null +++ b/ORStools/gui/linestyle.qml @@ -0,0 +1,365 @@ + + + + 1 + 1 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + generatedlayout + + + + + + + + + + + + + + + "new_field_name" + + 1 +