
GeoServer Beginner's Guide

Now we will continue exploring point symbology by changing the shape and adding a stroke value:
Take the PopulatedPlaces.xml
file, make a copy of it, and name it as PopulatedPlacesStroke.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>PopulatedPlacesStroke</Name>
Go to line 11 and replace the text inside the Title
element with the following:
<Title>Geoserver Beginners Guide: Populated Places square mark with stroke</Title>
Now we will change the shape form used to represent points on map. Go to line 17 and replace the text inside the WellKnownName
element with the following:
<WellKnownName>square</WellKnownName>
To add a stroke to your shape, you have to add a Stroke
element just after the Fill
element. Insert the following code inside the CssParameter
element to set the color and width of the stroke:
<Stroke> <CssParameter...
Change the font size
Change margin width
Change background colour