Don't pass an object to goog.dom.createDom for the class name
If the second argument to goog.dom.createDom is a string, then this is the className of the new element.
This commit is contained in:
@@ -38,8 +38,7 @@ ol.control.Rotate = function(opt_options) {
|
||||
* @private
|
||||
*/
|
||||
this.label_ = goog.dom.createDom(goog.dom.TagName.SPAN,
|
||||
{ 'class': 'ol-compass' },
|
||||
goog.isDef(options.label) ? options.label : '\u21E7');
|
||||
'ol-compass', goog.isDef(options.label) ? options.label : '\u21E7');
|
||||
|
||||
var tipLabel = goog.isDef(options.tipLabel) ?
|
||||
options.tipLabel : 'Reset rotation';
|
||||
|
||||
Reference in New Issue
Block a user