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

OpenLayers.Control class

As we saw in the previous example, there are quite a few controls available to us. The Control class is similar in nature to the Layer class—there is a base Control class which all other control subclasses inherit from. Because most controls provide completely different functionality from one another, the base Control class does not contain a lot of properties.

The official, up to date documentation for this class can be found at http://dev.openlayers.org/docs/files/OpenLayers/Control-js.html.

OpenLayers.Control properties

Like properties of other classes, you can specify these properties when instantiating your control object. There are a few properties of the base OpenLayers.Control class, which are inherited by all other ...

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