OpenLayers' Object
class inherits from Observable
and implements a software pattern called Key-Value Observing (KVO). With KVO, an object representing some data maintains a list of other objects that wish to observe it. When the data value changes, the observers are notified automatically.
The following methods are available in all OpenLayers classes, which inherit from ol.Object
. Note that the Object
class also contains all the methods provided by the Observable
class even though they are not listed here: