Class: ol.control.Control

ol.control.Control

new Control

A thing which is painted over the map to provide a means for interaction (buttons) of show annotations (status bars).
Parameters:
Name Type Description
controlOptions ol.control.ControlOptions Control options.
Source:
  • control.js, line 24

Extends

  • goog.Disposable

Members

<protected> element :Element

Source:
  • control.js, line 32

Methods

disposeInternal

Source:
  • control.js, line 58

getMap

Source:
  • control.js, line 67
Returns:
Map.
Type
ol.Map

setMap

Removes the control from its current map and attaches it to the new map. Subtypes might also wish set up event handlers to get notified about changes to the map here.
Parameters:
Name Type Description
map ol.Map Map.
Source:
  • control.js, line 79