Book Image

OpenLayers 2.10 Beginner's Guide

Book Image

OpenLayers 2.10 Beginner's Guide

Overview of this book

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

Using the Vector Layer without a Protocol class


If you desire to just load data from some data source, for most use cases, the standard Protocol / Format / Strategy usage we just covered will work well. However, you do not have to use those three classes together. The classes can be used somewhat independently.

For example, we could use the Clustering class to cluster our point data without using the Format or Protocol classes. We could use the Format class outside our vector layer to read from and output feature data in a variety of different formats.