Classes
- Attribution
- Control
- FullScreen
- MousePosition
- OverviewMap
- Rotate
- ScaleLine
- Zoom
- ZoomSlider
- ZoomToExtent
Methods
-
ol.control.defaults(opt_options){ol.Collection.<ol.control.Control>}
src/ol/control/controldefaults.js, line 21 -
Set of controls included in maps by default. Unless configured otherwise, this returns a collection containing an instance of each of the following controls:
Name Type Description options
Defaults options.
Name Type Description attribution
boolean | undefined Attribution. Default is
true
.attributionOptions
olx.control.AttributionOptions | undefined experimental Attribution options.
rotate
boolean | undefined Rotate. Default is
true
.rotateOptions
olx.control.RotateOptions | undefined experimental Rotate options.
zoom
boolean | undefined Zoom. Default is
true
.zoomOptions
olx.control.ZoomOptions | undefined experimental Zoom options.
Returns:
Controls.
Type Definitions
-
ol.control.ScaleLineUnits{string}
-
Units for the scale line. Supported values are
'degrees'
,'imperial'
,'nautical'
,'metric'
,'us'
.