Classes
- Attribution
- Control
- FullScreen
- MousePosition
- OverviewMap
- Rotate
- ScaleLine
- Zoom
- ZoomSlider
- ZoomToExtent
Methods
-
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 Attribution options.
rotate
boolean | undefined Rotate. Default is
true
.rotateOptions
olx.control.RotateOptions | undefined Rotate options.
zoom
boolean | undefined Zoom. Default is
true
.zoomOptions
olx.control.ZoomOptions | undefined Zoom options.
Returns:
Controls.
Type Definitions
-
ol.control.ScaleLineUnits{string}
-
Units for the scale line. Supported values are
'degrees'
,'imperial'
,'nautical'
,'metric'
,'us'
.