O'Reilly logo

OpenLayers 3 : Beginner's Guide by Erik Hazzard, Paul Spencer, Thomas Gratier

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

Summary

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 ...

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