Module: ol/control/Attribution

ol/control/Attribution


Classes

Attribution

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
className string <optional>
'ol-attribution'

CSS class name.

target HTMLElement | string <optional>

Specify a target if you want the control to be rendered outside of the map's viewport.

collapsible boolean <optional>

Specify if attributions can be collapsed. If not specified, sources control this behavior with their attributionsCollapsible setting.

collapsed boolean <optional>
true

Specify if attributions should be collapsed at startup.

tipLabel string <optional>
'Attributions'

Text label to use for the button tip.

label string | HTMLElement <optional>
'i'

Text label to use for the collapsed attributions button. Instead of text, also an element (e.g. a span element) can be used.

expandClassName string <optional>
className + '-expand'

CSS class name for the collapsed attributions button.

collapseLabel string | HTMLElement <optional>
'›'

Text label to use for the expanded attributions button. Instead of text, also an element (e.g. a span element) can be used.

collapseClassName string <optional>
className + '-collapse'

CSS class name for the expanded attributions button.

render function <optional>

Function called when the control should be re-rendered. This is called in a requestAnimationFrame callback.