Time for action – adding a stroke value
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 asPopulatedPlacesStroke.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 theFill
element. Insert the following code inside theCssParameter
element to set the color and width of the stroke:<Stroke> <CssParameter...