O'Reilly logo

OpenLayers 2.10 by Erik Hazzard

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

The Vector class, part two

Now that we've gotten a bit more of an understanding as to how the vector layer works, we can start doing some more interesting things. First though, let's do a quick recap of what we've covered so far:

  • The Vector class allows us to display vector objects on our map, using a variety of different renderers (SVG, Canvas, VML) to accomplish this.
  • Objects, such as points and polygons, in the vector layer are OpenLayers.Feature.Vector class objects.
  • Each Feature object contains a Geometry object which contains spatial information.
  • We can use a variety of Vector, Geometry, and Feature class methods to move the feature objects on the map, add features, and get information about the feature and geometry objects on the map.

So to ...

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