Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description durationnumber
(defaults to 250)Animation duration in milliseconds.
classNamestring
(defaults to 'ol-zoom')CSS class name.
zoomInClassNamestring
(defaults to className + '-in')CSS class name for the zoom-in button.
zoomOutClassNamestring
(defaults to className + '-out')CSS class name for the zoom-out button.
zoomInLabelstring | HTMLElement
(defaults to '+')Text label to use for the zoom-in button. Instead of text, also an element (e.g. a
spanelement) can be used.zoomOutLabelstring | HTMLElement
(defaults to '–')Text label to use for the zoom-out button. Instead of text, also an element (e.g. a
spanelement) can be used.zoomInTipLabelstring
(defaults to 'Zoom in')Text label to use for the button tip.
zoomOutTipLabelstring
(defaults to 'Zoom out')Text label to use for the button tip.
deltanumber
(defaults to 1)The zoom delta applied on each click.
targetHTMLElement | string | undefined Specify a target if you want the control to be rendered outside of the map's viewport.