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

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.

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