[Geoserver-users] CSS Label Rotation - upside down labels

Hi all,

I try to show rotated triangles, like this, using GeoServer 2.4.0 and a CSS style:
Szövegközi kép 1

I have two problems creating the correct CSS style:

  • how can I make the triangles rotate around the the tip (and not to overlap each other - they have the same coordinates in each group)
  • how can I make the labels rotated more than 180 degrees not to rendered upside down
    For the label issue I tried to use the ‘-gt-label-force-ltr: false;’ option but had no effect. Currently I use the following rule:

[@scale < 200000] {
label: [CELL];
font-fill: #333333;
font-family: Arial;
font-size: 12;
font-weight: bold;
halo-color: #FFFFFF;
halo-radius: 3px;
halo-opacity: 0.75;
label-anchor: 0 0.5;
label-offset: 20 0;
label-rotation: [DIR];
}

Thanks for any help in advance!

Best regards,
Balazs Eigner