Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description className
string <optional>
'ol-overviewmap' CSS class name.
collapsed
boolean <optional>
true Whether the control should start collapsed or not (expanded).
collapseLabel
string | HTMLElement <optional>
'«' Text label to use for the expanded overviewmap button. Instead of text, also an element (e.g. a
span
element) can be used.collapsible
boolean <optional>
true Whether the control can be collapsed or not.
label
string | HTMLElement <optional>
'»' Text label to use for the collapsed overviewmap button. Instead of text, also an element (e.g. a
span
element) can be used.layers
Array.<module:ol/layer/Layer~Layer> | module:ol/Collection~Collection.<module:ol/layer/Layer~Layer> <optional>
Layers for the overview map.
render
function <optional>
Function called when the control should be re-rendered. This is called in a
requestAnimationFrame
callback.rotateWithView
boolean <optional>
false Whether the control view should rotate with the main map view.
target
HTMLElement | string <optional>
Specify a target if you want the control to be rendered outside of the map's viewport.
tipLabel
string <optional>
'Overview map' Text label to use for the button tip.
view
module: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.