
GeoServer Beginner's Guide

You are probably a geography geek and you know what a place name is at the first look at the map. But maps are not always so expressive and common people tend to get confused without some reference text. Do you remember the pretty maps you styled with the Populated
Places
layer? They would look much better with some labels next to markers:
Take the PopulatedPlacesStroke.xml
file, make a copy to PopulatedPlacesLabeled.xml
, and then edit the new file in your text editor.
Go to line 9 and replace the text inside the Name
element with the following:
<Name>PopulatedPlacesLabeled</Name>
Go to line 11 and replace the text inside the Title
element with the following:
<Title>Geoserver Beginners Guide: Populated Places with styled labels</Title>
Go to line 17 and change the marker to a circle
:
<WellKnownName>circle</WellKnownName>
Go to line 26 and set the size to 8
:
<Size>8</Size>
After PointSymbolizer
, add a...
Change the font size
Change margin width
Change background colour