| 121 | {{{ |
| 122 | <SimpleSymbolDefinition> |
| 123 | <Name>ThickRail</Name> |
| 124 | <Graphics> |
| 125 | <Path> |
| 126 | <Geometry> |
| 127 | M 0.0, 0.0 L 5.0,0.0 |
| 128 | M 2.5,-2.5 L 2.5,2.5 |
| 129 | </Geometry> |
| 130 | <LineWeight>%LINE_WEIGHT%=1mm</LineWeight> |
| 131 | <LineCap>Round</LineCap> |
| 132 | <LineJoin>Round</LineJoin> |
| 133 | </Path> |
| 134 | </Graphics> |
| 135 | <LineUsage> |
| 136 | <VertexControl>OverlapWrap</VertexControl> |
| 137 | <Repeat>5.0</Repeat> |
| 138 | </LineUsage> |
| 139 | </SimpleSymbolDefinition> |
| 140 | }}} |
| 141 | |
| 142 | This time the line weight for the path has been parametrized. Its default value is 1 mm and this can be overridden at the symbol instance level. We’ve also changed the path’s line cap and line join styles to round. |
| 143 | |
| 144 | Note that when the line weight is modified the spacing between the vertical ticks does *not* change. The path geometry is fixed. If you want the symbol to get bigger / smaller to account for the line weight then this would be done using the symbol instance scales. For example, setting the scales to “1 + !LineWeight / 5” would ensure that there is always 5 mm of empty horizontal space between adjacent vertical ticks. |