O'Reilly logo

OpenLayers 3 : Beginner's Guide by Erik Hazzard, Paul Spencer, Thomas Gratier

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

Controls overview

After this long introduction to manipulation of controls, let's review all of them step by step. You can refer to the following diagram for a quick overview of the class hierarchy:

Controls overview

As you can see, all ol.control.* classes inherit from ol.control.Control.

So, first let's see this ol.control.Control.

The ol.control.Control class

The ol.control.Control is the parent class of all the available controls. It inherits from ol.Object, an abstract class that also inherits from ol.Observable, a convenient class to provide and manage listeners.

Control options

This object is responsible for the common options that all controls contain. All controls ...

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