- Source:
- control.jsdoc, line 1
Classes
- ol.control.Attribution
- ol.control.Control
- ol.control.FullScreen
- ol.control.Logo
- ol.control.MousePosition
- ol.control.ScaleLine
- ol.control.Zoom
- ol.control.ZoomSlider
- ol.control.ZoomToExtent
Members
-
<static> ScaleLineUnits :string
-
- Source:
- scalelinecontrol.js, line 33
Properties:
Name Type Default Description DEGREES
string degrees IMPERIAL
string imperial NAUTICAL
string nautical METRIC
string metric US
string us
Methods
-
<static> defaults
-
Parameters:
Name Type Argument Description options
ol.control.DefaultsOptions <optional>
(Optional) Defaults options.
controls
Array.<ol.control.Control>= <optional>
(Optional) Additional controls.
- Source:
- controldefaults.js, line 14
Returns:
Controls.
- Type
- ol.Collection
TypeDefs
-
AttributionOptions
-
- Source:
- objectliterals.jsdoc, line 27
Properties:
Name Type Description className
string | undefined CSS class name. Default is 'ol-attribution'.
map
ol.Map | undefined Map.
target
Element | undefined Target.
-
ControlOptions
-
- Source:
- objectliterals.jsdoc, line 29
Properties:
Name Type Description element
Element | undefined Element.
map
ol.Map | undefined Map.
target
Element | undefined Target.
-
DefaultsOptions
-
- Source:
- objectliterals.jsdoc, line 31
Properties:
Name Type Description attribution
boolean | undefined Attribution.
attributionOptions
ol.control.AttributionOptions | undefined Attribution options.
logo
boolean | undefined Logo.
logoOptions
ol.control.LogoOptions | undefined Logo options.
zoom
boolean | undefined Zoom.
zoomOptions
ol.control.ZoomOptions | undefined Zoom options.
-
FullScreenOptions
-
- Source:
- objectliterals.jsdoc, line 33
Properties:
Name Type Description className
string | undefined CSS class name. Default is 'ol-full-screen'.
keys
boolean | undefined Full keyboard access.
map
ol.Map | undefined Map.
target
Element | undefined Target.
-
LogoOptions
-
- Source:
- objectliterals.jsdoc, line 35
Properties:
Name Type Description className
string | undefined CSS class name. Default is 'ol-logo'.
map
ol.Map | undefined Map.
target
Element | undefined Target.
-
MousePositionOptions
-
- Source:
- objectliterals.jsdoc, line 37
Properties:
Name Type Description className
string | undefined CSS class name. Default is 'ol-mouse-position'.
coordinateFormat
ol.CoordinateFormatType | undefined Coordinate format.
map
ol.Map | undefined Map.
projection
ol.ProjectionLike Projection.
target
Element | undefined Target.
undefinedHTML
string | undefined Markup for undefined coordinates. Default is '' (empty string).
-
ScaleLineOptions
-
- Source:
- objectliterals.jsdoc, line 39
Properties:
Name Type Description className
string | undefined CSS Class name. Default is 'ol-scale-line'.
map
ol.Map | undefined Map.
minWidth
number | undefined Minimum width in pixels.
target
Element | undefined Target.
units
ol.control.ScaleLineUnits | undefined Units.
-
ZoomOptions
-
- Source:
- objectliterals.jsdoc, line 41
Properties:
Name Type Description className
string | undefined CSS class name. Default is 'ol-zoom'.
delta
number | undefined The zoom delta applied on each click.
map
ol.Map | undefined Map.
target
Element | undefined Target.
-
ZoomSliderOptions
-
- Source:
- objectliterals.jsdoc, line 43
Properties:
Name Type Description className
string | undefined CSS class name.
map
ol.Map | undefined Map.
maxResolution
number | undefined Maximum resolution.
minResolution
number | undefined Minimum resolution.
-
ZoomToExtentOptions
-
- Source:
- objectliterals.jsdoc, line 45
Properties:
Name Type Description className
string | undefined Class name.
map
ol.Map | undefined Map.
target
Element | undefined Target.
extent
ol.Extent | undefined The extent to zoom to. If undefined the validity extent of the view projection is used.