Add className option to ol.control.Logo

This commit is contained in:
Tom Payne
2013-05-07 16:17:51 +02:00
parent f08814250e
commit 525d5c5337
2 changed files with 4 additions and 1 deletions

View File

@@ -130,6 +130,7 @@
/**
* @typedef {Object} ol.control.LogoOptions
* @property {string|undefined} className Class name.
* @property {ol.Map|undefined} map Map.
* @property {Element|undefined} target Target.
*/

View File

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