@react-gis/openlayerscontrol

zoom-control

Functions

ZoomControl()

function ZoomControl(props: ZoomControlProps): null;

Defined in: packages/openlayers/src/control/zoom-control.tsx:11

Parameters

ParameterType
propsZoomControlProps

Returns

null

Interfaces

ZoomControlProps

Defined in: packages/openlayers/src/control/zoom-control.tsx:9

Extends

Properties

PropertyTypeDescriptionInherited from
className?stringCSS class name.ControlOptions.className
delta?numberThe zoom delta applied on each click.ControlOptions.delta
duration?numberAnimation duration in milliseconds.ControlOptions.duration
element?HTMLElementThe element is the control's container element. This only needs to be specified if you're developing a custom control.ControlOptions.element
render?(arg0: MapEvent) => voidFunction called when the control should be re-rendered. This is called in a requestAnimationFrame callback.ControlOptions.render
target?string | HTMLElementSpecify a target if you want the control to be rendered outside of the map's viewport.ControlOptions.target
zoomInClassName?stringCSS class name for the zoom-in button.ControlOptions.zoomInClassName
zoomInLabel?string | HTMLElementText label to use for the zoom-in button. Instead of text, also an element (e.g. a span element) can be used.ControlOptions.zoomInLabel
zoomInTipLabel?stringText label to use for the button tip.ControlOptions.zoomInTipLabel
zoomOutClassName?stringCSS class name for the zoom-out button.ControlOptions.zoomOutClassName
zoomOutLabel?string | HTMLElementText label to use for the zoom-out button. Instead of text, also an element (e.g. a span element) can be used.ControlOptions.zoomOutLabel
zoomOutTipLabel?stringText label to use for the button tip.ControlOptions.zoomOutTipLabel