Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description classNamestring <optional>
'ol-overviewmap' CSS class name.
collapsedboolean <optional>
true Whether the control should start collapsed or not (expanded).
collapseLabelstring | HTMLElement <optional>
'«' Text label to use for the expanded overviewmap button. Instead of text, also an element (e.g. a
spanelement) can be used.collapsibleboolean <optional>
true Whether the control can be collapsed or not.
labelstring | HTMLElement <optional>
'»' Text label to use for the collapsed overviewmap button. Instead of text, also an element (e.g. a
spanelement) can be used.layersArray.<module:ol/layer/Layer~Layer> | module:ol/Collection~Collection.<module:ol/layer/Layer~Layer> <optional>
Layers for the overview map.
renderfunction <optional>
Function called when the control should be re-rendered. This is called in a
requestAnimationFramecallback.rotateWithViewboolean <optional>
false Whether the control view should rotate with the main map view.
targetHTMLElement | string <optional>
Specify a target if you want the control to be rendered outside of the map's viewport.
tipLabelstring <optional>
'Overview map' Text label to use for the button tip.
viewmodule:ol/View~View <optional>
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.
OpenLayers