Make zoom slider control options optional

This commit is contained in:
Tom Payne
2013-05-07 16:31:39 +02:00
parent ab9fc9cc71
commit 9c59116dd1
+4 -2
View File
@@ -31,9 +31,11 @@ ol.control.ZOOMSLIDER_ANIMATION_DURATION = 200;
/** /**
* @constructor * @constructor
* @extends {ol.control.Control} * @extends {ol.control.Control}
* @param {ol.control.ZoomSliderOptions} options Zoom slider options. * @param {ol.control.ZoomSliderOptions=} opt_options Zoom slider options.
*/ */
ol.control.ZoomSlider = function(options) { ol.control.ZoomSlider = function(opt_options) {
var options = goog.isDef(opt_options) ? opt_options : {};
/** /**
* Will hold the current resolution of the view. * Will hold the current resolution of the view.