Time for action – composing simple shapes
You know you can specify WellKnownName
as a marker, but if you need something more complex you can always merge two or more basic shapes to create a new marker. In the following steps you will see how to do so:
Take the
PopulatedPlacesStrokes.xml
file, make a copy, and name it asPopulatedPlacesComplex.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>PopulatedPlacesComplex</Name>
Go to line 11 and replace the text inside the
Title
element with the following:<Title>Geoserver Beginners Guide: mark composed of three basic shapes</Title>
Now we will change the size for the square marker. Go to line 26 and replace the text inside the
Size
element with the following:<Size>10</Size>
To compose a complex marker, you need to add other markers as in a pile. Keep in mind that GeoServer will draw the markers in the inverse order; hence the...