Remove Logo Control from defaults

This commit is contained in:
Antoine Abt
2014-05-30 16:12:41 +02:00
parent 5a1e92830f
commit aeaa172abe

View File

@@ -2,7 +2,6 @@ goog.provide('ol.control');
goog.require('ol.Collection');
goog.require('ol.control.Attribution');
goog.require('ol.control.Logo');
goog.require('ol.control.Rotate');
goog.require('ol.control.Zoom');
@@ -15,7 +14,6 @@ goog.require('ol.control.Zoom');
* * {@link ol.control.Zoom}
* * {@link ol.control.Rotate}
* * {@link ol.control.Attribution}
* * {@link ol.control.Logo}
*
* @param {olx.control.DefaultsOptions=} opt_options Defaults options.
* @return {ol.Collection} Controls.
@@ -45,12 +43,6 @@ ol.control.defaults = function(opt_options) {
controls.push(new ol.control.Attribution(options.attributionOptions));
}
var logoControl = goog.isDef(options.logo) ?
options.logo : true;
if (logoControl) {
controls.push(new ol.control.Logo(options.logoOptions));
}
return controls;
};