Type Definitions
-
olx.control.AttributionOptions{Object} experimental
-
Properties:
Name Type Argument Description classNamestring | undefined <optional>
CSS class name. Default is
ol-attribution.targetElement | undefined <optional>
Target.
-
olx.control.ControlOptions{Object} experimental
-
Properties:
Name Type Argument Description elementElement | undefined <optional>
The element is the control's container element. This only needs to be specified if you're developing a custom control.
targetElement | string | undefined <optional>
Specify a target if you want the control to be rendered outside of the map's viewport.
-
olx.control.DefaultsOptions{Object} experimental
-
Properties:
Name Type Argument Description attributionboolean | undefined <optional>
Attribution. Default is
true.attributionOptionsolx.control.AttributionOptions | undefined <optional>
Attribution options.
logoboolean | undefined <optional>
Logo. Default is
true.logoOptionsolx.control.LogoOptions | undefined <optional>
Logo options.
zoomboolean | undefined <optional>
Zoom. Default is
true.rotateOptionsolx.control.RotateOptions | undefined <optional>
Rotate options.
zoomOptionsolx.control.ZoomOptions | undefined <optional>
Zoom options.
-
olx.control.FullScreenOptions{Object} experimental
-
Properties:
Name Type Argument Description classNamestring | undefined <optional>
CSS class name. Default is
ol-full-screen.tipLabelstring | undefined <optional>
Text label to use for the button tip. Default is
Toggle full-screenkeysboolean | undefined <optional>
Full keyboard access.
targetElement | undefined <optional>
Target.
-
olx.control.LogoOptions{Object} experimental
-
Properties:
Name Type Argument Description classNamestring | undefined <optional>
CSS class name. Default is
ol-logo.targetElement | undefined <optional>
Target.
-
olx.control.MousePositionOptions{Object} experimental
-
Properties:
Name Type Argument Description classNamestring | undefined <optional>
CSS class name. Default is
ol-mouse-position.coordinateFormatol.CoordinateFormatType | undefined <optional>
Coordinate format.
projectionol.proj.ProjectionLike Projection.
targetElement | undefined <optional>
Target.
undefinedHTMLstring | undefined <optional>
Markup for undefined coordinates. Default is `` (empty string).
-
olx.control.RotateOptions{Object} experimental
-
Properties:
Name Type Argument Description classNamestring | undefined <optional>
CSS class name. Default is
ol-rotate.labelstring | undefined <optional>
Text label to use for the rotate button. Default is
⇧tipLabelstring | undefined <optional>
Text label to use for the rotate tip. Default is
Reset rotationdurationnumber | undefined <optional>
Animation duration in milliseconds. Default is
250.autoHideboolean | undefined <optional>
Hide the control when rotation is 0. Default is
true.targetElement | undefined <optional>
Target.
-
olx.control.ScaleLineOptions{Object} experimental
-
Properties:
Name Type Argument Description classNamestring | undefined <optional>
CSS Class name. Default is
ol-scale-line.minWidthnumber | undefined <optional>
Minimum width in pixels. Default is
64.targetElement | undefined <optional>
Target.
unitsol.control.ScaleLineUnits | string | undefined <optional>
Units. Default is
metric. -
olx.control.ZoomOptions{Object} experimental
-
Properties:
Name Type Argument Description durationnumber | undefined <optional>
Animation duration in milliseconds. Default is
250.classNamestring | undefined <optional>
CSS class name. Default is
ol-zoom.zoomInLabelstring | undefined <optional>
Text label to use for the zoom-in button. Default is
+zoomOutLabelstring | undefined <optional>
Text label to use for the zoom-out button. Default is
-zoomInTipLabelstring | undefined <optional>
Text label to use for the button tip. Default is
Zoom inzoomOutTipLabelstring | undefined <optional>
Text label to use for the button tip. Default is
Zoom outdeltanumber | undefined <optional>
The zoom delta applied on each click.
targetElement | undefined <optional>
Target.
-
olx.control.ZoomSliderOptions{Object} experimental
-
Properties:
Name Type Argument Description classNamestring | undefined <optional>
CSS class name.
maxResolutionnumber | undefined <optional>
Maximum resolution.
minResolutionnumber | undefined <optional>
Minimum resolution.
-
olx.control.ZoomToExtentOptions{Object} experimental
-
Properties:
Name Type Argument Description classNamestring | undefined <optional>
Class name. Default is
ol-zoom-extent.targetElement | undefined <optional>
Target.
tipLabelstring | undefined <optional>
Text label to use for the button tip. Default is
Zoom to extentextentol.Extent | undefined <optional>
The extent to zoom to. If undefined the validity extent of the view projection is used.
OpenLayers 3