Module: ol/control/Attribution

ol/control/Attribution


Classes

Attribution

Methods

module:ol/control/Attribution.render(mapEvent)

control/Attribution.js, line 330

Update the attribution element.

This:
Name Type Description
mapEvent module:ol/MapEvent~MapEvent

Map event.

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 <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.

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.

render function <optional>

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