Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description classNamestring
(defaults to 'ol-overviewmap')CSS class name.
collapsedboolean
(defaults to true)Whether the control should start collapsed or not (expanded).
collapseLabelstring | HTMLElement
(defaults to '‹')Text label to use for the expanded overviewmap button. Instead of text, also an element (e.g. a
spanelement) can be used.collapsibleboolean
(defaults to true)Whether the control can be collapsed or not.
labelstring | HTMLElement
(defaults to '›')Text label to use for the collapsed overviewmap button. Instead of text, also an element (e.g. a
spanelement) can be used.layersArray<BaseLayer> | Collection<BaseLayer> | undefined Layers for the overview map.
renderfunction | undefined Function called when the control should be re-rendered. This is called in a
requestAnimationFramecallback.rotateWithViewboolean
(defaults to false)Whether the control view should rotate with the main map view.
targetHTMLElement | string | undefined Specify a target if you want the control to be rendered outside of the map's viewport.
tipLabelstring
(defaults to 'Overview map')Text label to use for the button tip.
viewView | undefined Custom view for the overview map (should use same projection as main map). If not provided, a default view with the same projection as the main map will be used.