Geoportal Extension for Itowns API Reference

Class: Attributions


Control to manage layers attributions

new Attributions(aOptions)

Itowns/Controls/Attributions.js, line 28
Name Type Description
aOptions Object

control options

Name Type Description
options Object optional

Itowns.control.Control options

Name Type Default Description
collapsed Boolean false optional

Specify if the control has to be opened or not.

var attribution = new itowns.control.Attritbution({
 options : {
     collapsed: true




Itowns/Controls/Attributions.js, line 135

Returns true if widget is collapsed (minimize), false otherwise

inherited getElement(){HTMLElement}

Itowns/Controls/Widget.js, line 45

Return the widget's container element.

container element.

inherited getGlobe(){Object}

Itowns/Controls/Widget.js, line 110

Get the globe associated with the widget. Undefined if the widget is not added to a globe.

inherited getTarget(){HTMLElement}

Itowns/Controls/Widget.js, line 88

Return the widget's target div.

target div.


Itowns/Controls/Attributions.js, line 117

Collapse or display control main container

Name Type Description
collapsed Boolean

True to collapse control, False to display it


Itowns/Controls/Attributions.js, line 78

Bind globe to control

Name Type Description
globe GlobeViewExtended

the globe

inherited setOptions(options)

Itowns/Controls/Widget.js, line 98

Change the options of the widget.

Name Type Description
options Object

The new options of the control.

inherited setTarget(targetDiv, position)

Itowns/Controls/Widget.js, line 56

Associates the widget to a specified target div.

Name Type Description
targetDiv HTMLElement

widget target div.

position String

html position attribute.