Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • OpenLayers 2.10 Beginner's Guide
  • Toc
  • feedback
OpenLayers 2.10 Beginner's Guide

OpenLayers 2.10 Beginner's Guide

4.2 (9)
close
OpenLayers 2.10 Beginner's Guide

OpenLayers 2.10 Beginner's Guide

4.2 (9)

Overview of this book

Table of Contents (18 chapters)
close
OpenLayers 2.10
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 reiterate—so far, we've looked mainly at the Vector class itself and how to interact with features we add to it. What's left then?

Well, funny you should ask. You've probably noticed we have not spent a whole lot of time creating the actual vector layer...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete