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:
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
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.
This object is responsible for the common options that all controls contain. All controls inherit from ol.control.Control
, and it's exactly the same for the options. To understand its properties, just review how a control can be described.
"A control is a DOM element related to the map and that can be attached to an existing DOM element."
If you refer to the following table. The DOM element is the element
property, the place that contains...