
GeoServer Beginner's Guide

When representing a point marker, you can add a rotation angle to those shapes where it makes sense to. You can also set opacity to make the fill, stroke, or both more or less transparent. Let's create a new style experimenting with these features:
Take the PopulatedPlacesStrokes.xml
file, make a copy of it, and name it as PopulatedRotateTransparent.xml
. Edit the new file in your text editor.
Go to line 9 and replace the text inside the Name
element with the following:
<Name>PopulatedRotateTransparent</Name>
Go to line 11 and replace the text inside the Title
element with the following:
<Title>Geoserver Beginners Guide: Populated Places rotated mark with transparency</Title>
Now we will change the size for marker. Go to line 26 and replace the text inside the Size
element with the following:
<Size>9</Size>
To rotate the marker, add a line after the Size
element setting an angle of 45
degrees:
...
Change the font size
Change margin width
Change background colour