| I had a question asked at gis.stackexchange.com https://gis.stackexchange.com/questions/303768/how-to-control-follow-line-text-repeat-in-geoserver-ysld-style but there as been no answer so I'm reporting it as an issue here. I was trying to label river lines with just one or two labels per screen. The YSLD style looks as follows:
feature-styles:
- rules:
- symbolizers:
- line:
stroke-color: blue
stroke-width: 1.25
- text:
label: ${label}
fill-color: blue
font-family: SansSerif
font-size: 14
placement: line
offset: -10
x-followLine: true
x-maxAngleDelta: 90
x-repeat: 500
Setting x-repeat to a value in the range of 1~100 changes the distance between labels as expected. But with any greater value or with a zero value or with the parameter being absent at all the distance between labels always stays the same at approximately 200px. |