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

Chapter 5. Using Vector Layers

Having explored raster layers, it's time to explore the other layer type that OpenLayers supports—vector layers. In this chapter, we'll introduce the vector layer and discover how to display and interact with vector data on the fly. We'll see how we can use vector sources to load vector data in a variety of formats. Through several hands-on examples, we'll explore the Format, Feature, and Geometry classes that are the foundation of OpenLayers 3 vector support.

In this chapter, we will cover using the vector layer class, ol.layer.vector, and some related classes to display vector data. Specifically, we'll:

  • Discuss what the vector layer class is and see how it works
  • Cover the properties, methods, and events of the vector ...

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