O'Reilly logo

Mastering GeoServer by Colin Henderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Styling data using Cascaded Style Sheets

Although SLDs are the default method to apply styles to the data served by GeoServer, it is not the only way. There is an extension available that adds the ability to provide styling information using Cascaded Style Sheets (CSS). There are a couple of reasons why you might choose to use CSS styles over traditional SLDs:

  • If you have built any kind of web page, then you are likely already familiar with the syntax of CSS
  • The CSS syntax is much leaner than SLD, making styles more readable
  • You don't need to understand XML, making CSS styles less prone to syntax errors

Getting started with CSS styles is as easy as installing the extension and restarting GeoServer.

Installing the extension

Like with all other GeoServer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required