Skip to content

Commit 1dacbd6

Browse files
author
Sandro Santilli
committed
Fix next edge label direction arrows
Basically uses direction indicator for the next_left but omits it for the next_right (would require backward direction) Also this commit sets the line color, even if fully transparent, for the sake of showing a color which corresponds to the label color (would be better to have support for a "label" kind of icon in the legend..)
1 parent 8414ff9 commit 1dacbd6

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/templates/next_left.qml

+7-5
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
<rotationclassificationfieldname></rotationclassificationfieldname>
1313
<scaleclassificationfieldname></scaleclassificationfieldname>
1414
<symbolfieldname></symbolfieldname>
15-
<outlinecolor red="133" blue="203" green="231"/>
15+
<outlinecolor red="0" blue="0" green="170"/>
1616
<outlinestyle>SolidLine</outlinestyle>
17-
<outlinewidth>0.26</outlinewidth>
17+
<outlinewidth>1</outlinewidth>
1818
<fillcolor red="0" blue="0" green="0"/>
1919
<fillpattern>NoBrush</fillpattern>
2020
<texturepath>../../../../../../../../../src/qgis/plugins/db_manager/db_manager/db_plugins/postgis/plugins/qgis_topoview</texturepath>
2121
</symbol>
2222
</singlesymbol>
2323
<customproperties>
2424
<property key="labeling" value="pal"/>
25-
<property key="labeling/addDirectionSymbol" value="false"/>
25+
<property key="labeling/addDirectionSymbol" value="true"/>
2626
<property key="labeling/angleOffset" value="0"/>
2727
<property key="labeling/bufferColorB" value="255"/>
2828
<property key="labeling/bufferColorG" value="255"/>
@@ -58,7 +58,7 @@
5858
<property key="labeling/dist" value="3"/>
5959
<property key="labeling/distInMapUnits" value="false"/>
6060
<property key="labeling/enabled" value="true"/>
61-
<property key="labeling/fieldName" value="next_left_edge || '->'"/>
61+
<property key="labeling/fieldName" value="next_left_edge"/>
6262
<property key="labeling/fontCapitals" value="0"/>
6363
<property key="labeling/fontFamily" value="Sans"/>
6464
<property key="labeling/fontItalic" value="false"/>
@@ -70,7 +70,7 @@
7070
<property key="labeling/fontWeight" value="50"/>
7171
<property key="labeling/fontWordSpacing" value="0"/>
7272
<property key="labeling/formatNumbers" value="false"/>
73-
<property key="labeling/isExpression" value="true"/>
73+
<property key="labeling/isExpression" value="false"/>
7474
<property key="labeling/labelOffsetInMapUnits" value="true"/>
7575
<property key="labeling/labelPerPart" value="false"/>
7676
<property key="labeling/mergeLines" value="false"/>
@@ -136,5 +136,7 @@
136136
<editform>../../../../../../../../../src/qgis/plugins/db_manager/db_manager/db_plugins/postgis/plugins/qgis_topoview</editform>
137137
<editforminit></editforminit>
138138
<annotationform>../../../../../../../../../src/qgis/plugins/db_manager/db_manager/db_plugins/postgis/plugins/qgis_topoview</annotationform>
139+
<excludeAttributesWMS/>
140+
<excludeAttributesWFS/>
139141
<attributeactions/>
140142
</qgis>

python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/templates/next_right.qml

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<rotationclassificationfieldname></rotationclassificationfieldname>
1313
<scaleclassificationfieldname></scaleclassificationfieldname>
1414
<symbolfieldname></symbolfieldname>
15-
<outlinecolor red="28" blue="179" green="160"/>
15+
<outlinecolor red="170" blue="0" green="0"/>
1616
<outlinestyle>SolidLine</outlinestyle>
17-
<outlinewidth>0.26</outlinewidth>
17+
<outlinewidth>1</outlinewidth>
1818
<fillcolor red="0" blue="0" green="0"/>
1919
<fillpattern>NoBrush</fillpattern>
2020
<texturepath>../../../../../../../../../src/qgis/plugins/db_manager/db_manager/db_plugins/postgis/plugins/qgis_topoview</texturepath>
@@ -58,7 +58,7 @@
5858
<property key="labeling/dist" value="3"/>
5959
<property key="labeling/distInMapUnits" value="false"/>
6060
<property key="labeling/enabled" value="true"/>
61-
<property key="labeling/fieldName" value="'&lt;-' || next_right_edge"/>
61+
<property key="labeling/fieldName" value="next_right_edge"/>
6262
<property key="labeling/fontCapitals" value="0"/>
6363
<property key="labeling/fontFamily" value="Sans"/>
6464
<property key="labeling/fontItalic" value="false"/>
@@ -70,7 +70,7 @@
7070
<property key="labeling/fontWeight" value="50"/>
7171
<property key="labeling/fontWordSpacing" value="0"/>
7272
<property key="labeling/formatNumbers" value="false"/>
73-
<property key="labeling/isExpression" value="true"/>
73+
<property key="labeling/isExpression" value="false"/>
7474
<property key="labeling/labelOffsetInMapUnits" value="true"/>
7575
<property key="labeling/labelPerPart" value="false"/>
7676
<property key="labeling/mergeLines" value="false"/>
@@ -136,5 +136,7 @@
136136
<editform>../../../../../../../../../src/qgis/plugins/db_manager/db_manager/db_plugins/postgis/plugins/qgis_topoview</editform>
137137
<editforminit></editforminit>
138138
<annotationform>../../../../../../../../../src/qgis/plugins/db_manager/db_manager/db_plugins/postgis/plugins/qgis_topoview</annotationform>
139+
<excludeAttributesWMS/>
140+
<excludeAttributesWFS/>
139141
<attributeactions/>
140142
</qgis>

0 commit comments

Comments
 (0)