Remove Logo Control from defaults
This commit is contained in:
@@ -2,7 +2,6 @@ goog.provide('ol.control');
|
|||||||
|
|
||||||
goog.require('ol.Collection');
|
goog.require('ol.Collection');
|
||||||
goog.require('ol.control.Attribution');
|
goog.require('ol.control.Attribution');
|
||||||
goog.require('ol.control.Logo');
|
|
||||||
goog.require('ol.control.Rotate');
|
goog.require('ol.control.Rotate');
|
||||||
goog.require('ol.control.Zoom');
|
goog.require('ol.control.Zoom');
|
||||||
|
|
||||||
@@ -15,7 +14,6 @@ goog.require('ol.control.Zoom');
|
|||||||
* * {@link ol.control.Zoom}
|
* * {@link ol.control.Zoom}
|
||||||
* * {@link ol.control.Rotate}
|
* * {@link ol.control.Rotate}
|
||||||
* * {@link ol.control.Attribution}
|
* * {@link ol.control.Attribution}
|
||||||
* * {@link ol.control.Logo}
|
|
||||||
*
|
*
|
||||||
* @param {olx.control.DefaultsOptions=} opt_options Defaults options.
|
* @param {olx.control.DefaultsOptions=} opt_options Defaults options.
|
||||||
* @return {ol.Collection} Controls.
|
* @return {ol.Collection} Controls.
|
||||||
@@ -45,12 +43,6 @@ ol.control.defaults = function(opt_options) {
|
|||||||
controls.push(new ol.control.Attribution(options.attributionOptions));
|
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;
|
return controls;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user