Add className option to ol.control.Attribution

This commit is contained in:
Tom Payne
2013-05-07 16:17:13 +02:00
parent c105a98443
commit 8c396e5afb
2 changed files with 4 additions and 1 deletions

View File

@@ -32,8 +32,10 @@ ol.control.Attribution = function(opt_options) {
*/
this.ulElement_ = goog.dom.createElement(goog.dom.TagName.UL);
var className = goog.isDef(options.className) ?
options.className : 'ol-attribution';
var element = goog.dom.createDom(goog.dom.TagName.DIV, {
'class': 'ol-attribution ' + ol.css.CLASS_UNSELECTABLE
'class': className + ' ' + ol.css.CLASS_UNSELECTABLE
}, this.ulElement_);
goog.base(this, {