Module: ol/control/Attribution

ol/control/Attribution


Classes

Attribution

Methods

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

control/Attribution.js, line 215

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 Element | string <optional>

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

collapsible boolean <optional>
true

Specify if attributions can be collapsed. If you use an OSM source, should be set to false — see href="http://www.openstreetmap.org/copyright">www.openstreetmap.org/copyright OSM Copyright —

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