O'Reilly logo

OpenLayers Cookbook by Antonio Santiago Perez

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 3. Working with Vector Layers

In this chapter we cover:

  • Adding a GML layer
  • Adding KML layer
  • Creating features programmatically
  • Reading and creating features from a WKT
  • Adding markers to the map
  • Using point features as markers
  • Working with popups
  • Adding features from a WFS server
  • Using the cluster strategy
  • Filtering features in WFS requests
  • Reading features directly using Protocols

Introduction

This chapter talks about vector layers. In addition to raster, vector information is the other important type of information we can work with in a GIS system.

The chapter tries to summarize the most common and important recipes you may need to work with in OpenLayers.

In GIS, a real-world phenomenon is represented by the concept of a feature. It can be a place—like ...

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