@react-gis/openlayerscontrol

zoom-to-extent-control

Functions

ZoomToExtentControl()

function ZoomToExtentControl(props: ZoomToExtentControlProps): null;

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

Parameters

ParameterType
propsZoomToExtentControlProps

Returns

null

Interfaces

ZoomToExtentControlProps

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

Extends

Properties

PropertyTypeDescriptionInherited from
className?stringClass name.ControlOptions.className
element?HTMLElementThe element is the control's container element. This only needs to be specified if you're developing a custom control.ControlOptions.element
extent?ExtentThe extent to zoom to. If undefined the validity extent of the view projection is used.ControlOptions.extent
label?string | HTMLElementText label to use for the button. Instead of text, also an element (e.g. a span element) can be used.ControlOptions.label
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
tipLabel?stringText label to use for the button tip.ControlOptions.tipLabel