Remove 2nd arg to ol.control.defaults
This commit is contained in:
@@ -8,10 +8,9 @@ goog.require('ol.control.Zoom');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.control.DefaultsOptions=} opt_options Defaults options.
|
* @param {ol.control.DefaultsOptions=} opt_options Defaults options.
|
||||||
* @param {Array.<ol.control.Control>=} opt_controls Additional controls.
|
|
||||||
* @return {ol.Collection} Controls.
|
* @return {ol.Collection} Controls.
|
||||||
*/
|
*/
|
||||||
ol.control.defaults = function(opt_options, opt_controls) {
|
ol.control.defaults = function(opt_options) {
|
||||||
|
|
||||||
var options = goog.isDef(opt_options) ? opt_options : {};
|
var options = goog.isDef(opt_options) ? opt_options : {};
|
||||||
|
|
||||||
@@ -41,10 +40,6 @@ ol.control.defaults = function(opt_options, opt_controls) {
|
|||||||
controls.push(new ol.control.Zoom(zoomControlOptions));
|
controls.push(new ol.control.Zoom(zoomControlOptions));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (goog.isDef(opt_controls)) {
|
|
||||||
controls.extend(opt_controls);
|
|
||||||
}
|
|
||||||
|
|
||||||
return controls;
|
return controls;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user