new Attributions(aOptions)
Itowns/Controls/Attributions.js, line 25
Name | Type | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aOptions | Object |
control options
|
Example
var attribution = new itowns.control.Attritbution({
options : {
collapsed: true
}
));
Extends
Methods
-
getCollapsed(){Boolean}
Itowns/Controls/Attributions.js, line 133 -
Returns true if widget is collapsed (minimize), false otherwise
-
inherited getElement(){HTMLElement}
Itowns/Controls/Widget.js, line 41 -
Return the widget's container element.
Returns:
container element.
-
inherited getGlobe(){Object}
Itowns/Controls/Widget.js, line 106 -
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 84 -
Return the widget's target div.
Returns:
target div.
-
setCollapsed(collapsed)
Itowns/Controls/Attributions.js, line 115 -
Collapse or display control main container
Name Type Description collapsed Boolean True to collapse control, False to display it
-
setGlobe()
Itowns/Controls/Attributions.js, line 73 -
Bind globe to control
-
inherited setOptions(options)
Itowns/Controls/Widget.js, line 94 -
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 52 -
Associates the widget to a specified target div.
Name Type Description targetDiv HTMLElement widget target div.
position String html position attribute.