Creating a simple polygon style with CSS
We're assuming that you already know how to make WMS GetMap requests to GeoServer and you have already played with simple SLD styles. Now, you'll start creating your first simple style using the CSS syntax. For this recipe, you'll use the countries feature type you published in Chapter 1, Working with Vectors.
Tip
The entire CSS style for the recipe is located in the GeneralizedCountries.css
file.
How to do it…
- Open the CSS Style section from the GeoServer web interface. Then, select the link Choose a different layer. From the list of layers, select PostGISLocal:GeneralizedCountries.
- Select the Create a new style link. In the form, select the NaturalEarth workspace and insert the style name, as shown in the ...
Get GeoServer Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.