Chapter 2. Applying Custom Styles

We covered the basics of the library in the previous chapter. Before moving on and learning how to code great applications with the library, we will cover the basics of applying custom styles with CSS and the methods offered by OpenLayers 3. The CSS part requires some basic knowledge in styling, but the more advanced techniques will be discussed in greater details.

In this chapter, we will cover the following topics:

  • Modifying the default appearance of the map with CSS
  • Applying custom styles to vector layers
  • Customizing controls
  • Creating a WebGIS application layout

Before getting started

Before moving on and customizing the default appearance, we should talk about its rendering process. OpenLayers 3 is a canvas-based ...

Get Mastering OpenLayers 3 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.