Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description className
string
(defaults to 'ol-zoom-extent')Class name.
target
HTMLElement | string | undefined Specify a target if you want the control to be rendered outside of the map's viewport.
label
string | HTMLElement
(defaults to 'E')Text label to use for the button. Instead of text, also an element (e.g. a
span
element) can be used.tipLabel
string
(defaults to 'Fit to extent')Text label to use for the button tip.
extent
Extent | undefined The extent to zoom to. If undefined the validity extent of the view projection is used.