This concludes our chapter on styling vector layers. OpenLayers' styling capabilities are quite simple to implement, but can be incredibly powerful. The basic styles are easy to set up and give you a lot of flexibility in styling your vector features. More complex styling is readily implemented through the use of a style function by allowing you to create basic styles tailored to a specific feature and current zoom level of the map. The building blocks—basic styles and the style function—are simple, but the combination of them allows you to create highly custom cartographic representations for your vector data.
In the next chapter, we will dig into projections and discover how to use them to display both vector and raster layers in different projections.