Merge pull request #682 from elemoine/export-func

missing exports
This commit is contained in:
Éric Lemoine
2013-08-19 09:14:16 -07:00
24 changed files with 134 additions and 42 deletions
+1 -1
View File
@@ -1 +1 @@
@exportSymbol ol.control.defaults ol.control.defaults
@exportFunction ol.control.defaults ol.control.DefaultsOptions ol.Collection
+3 -8
View File
@@ -8,10 +8,9 @@ goog.require('ol.control.Zoom');
/**
* @param {ol.control.DefaultsOptions=} opt_options Defaults options.
* @param {Array.<ol.control.Control>=} opt_controls Additional 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 : {};
@@ -36,15 +35,11 @@ ol.control.defaults = function(opt_options, opt_controls) {
var zoomControl = goog.isDef(options.zoom) ?
options.zoom : true;
if (zoomControl) {
var zoomControlOptions = goog.isDef(options.zoomControlOptions) ?
options.zoomControlOptions : undefined;
var zoomControlOptions = goog.isDef(options.zoomOptions) ?
options.zoomOptions : undefined;
controls.push(new ol.control.Zoom(zoomControlOptions));
}
if (goog.isDef(opt_controls)) {
controls.extend(opt_controls);
}
return controls;
};
+1 -1
View File
@@ -6,7 +6,7 @@ goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('goog.events');
goog.require('goog.events.EventType');
goog.require('ol.animation');
goog.require('ol.animation.zoom');
goog.require('ol.control.Control');
goog.require('ol.css');
goog.require('ol.easing');
+1 -1
View File
@@ -15,7 +15,7 @@ goog.require('goog.fx.Dragger.EventType');
goog.require('goog.math');
goog.require('goog.math.Rect');
goog.require('goog.style');
goog.require('ol.animation');
goog.require('ol.animation.zoom');
goog.require('ol.control.Control');
goog.require('ol.css');
goog.require('ol.easing');