new Attribution(opt_options)
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Attribution options.
|
|||||||||||||||||||||||||||||||||||||
Fires:
-
change(module:ol/events/Event~Event) - Generic change event. Triggered when the revision counter is increased. -
propertychange(module:ol/Object.ObjectEvent) - Triggered when a property is changed.
Extends
Methods
-
getCollapsed(){boolean}
control/Attribution.js, line 320 -
Return
truewhen the attribution is currently collapsed orfalseotherwise.Returns:
True if the widget is collapsed.
-
getCollapsible(){boolean}
control/Attribution.js, line 280 -
Return
trueif the attribution is collapsible,falseotherwise.Returns:
True if the widget is collapsible.
-
Get the map associated with this control.
Returns:
Map.
-
setCollapsed(collapsed)
control/Attribution.js, line 307 -
Collapse or expand the attribution according to the passed parameter. Will not do anything if the attribution isn't collapsible or if the current collapsed state is already the one requested.
Name Type Description collapsedboolean True if the widget is collapsed.
-
setCollapsible(collapsible)
control/Attribution.js, line 289 -
Set whether the attribution should be collapsible.
Name Type Description collapsibleboolean True if the widget is collapsible.
-
Remove the control from its current map and attach it to the new map. Subclasses may set up event handlers to get notified about changes to the map here.
Name Type Description mapmodule:ol/PluggableMap~PluggableMap Map.
-
This function is used to set a target element for the control. It has no effect if it is called after the control has been added to the map (i.e. after
setMapis called on the control). If notargetis set in the options passed to the control constructor and ifsetTargetis not called then the control is added to the map's overlay container.Name Type Description targetHTMLElement | string Target.
OpenLayers