Fix checks for undefined in rotate control

This commit is contained in:
Guillaume Beraudo
2016-02-10 14:26:53 +01:00
parent adb5b78cb6
commit cf5006617c

View File

@@ -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}