Fix checks for undefined in rotate control
This commit is contained in:
@@ -26,9 +26,9 @@ ol.control.Rotate = function(opt_options) {
|
||||
|
||||
var options = opt_options ? opt_options : {};
|
||||
|
||||
var className = options.className ? options.className : 'ol-rotate';
|
||||
var className = options.className !== undefined ? options.className : 'ol-rotate';
|
||||
|
||||
var label = options.label ? options.label : '\u21E7';
|
||||
var label = options.label !== undefined ? options.label : '\u21E7';
|
||||
|
||||
/**
|
||||
* @type {Element}
|
||||
|
||||
Reference in New Issue
Block a user