
GeoServer Beginner's Guide

On maps, major roads, such as highways, are often represented with a more complex symbol than a continuous colored line. You are going to use three line symbols to build a representation of highways:
Take the Rivers.xml
file, make a copy to Roads.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>Roads</Name>
Go to line 11 and replace the text inside the Title
element with the following:
<Title>Geoserver Beginners Guide: Roads complex symbol</Title>
At line 16, set the color to red:
<CssParameter name="stroke">#FF0000</CssParameter>
At line 17, set the width to 5
:
<CssParameter name="stroke-width">5</CssParameter>
After line 13, insert a new LineSymbolizer
section as in the following code fragment.
Use a width of 7
and set the color to black. The black line will result as a border on both sides of...
Change the font size
Change margin width
Change background colour