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