From 7c01d3a57ce446ea3b36d1c1cf2f3b7ab338397b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:46:12 +0200 Subject: [PATCH 01/10] Add @api stable annotations for ol.control.Control --- externs/olx.js | 2 +- src/ol/control/control.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index df35ccc095..5663f0df80 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -779,7 +779,7 @@ olx.control.AttributionOptions.prototype.collapseLabel; /** * @typedef {{element: (Element|undefined), * target: (Element|string|undefined)}} - * @api + * @api stable */ olx.control.ControlOptions; diff --git a/src/ol/control/control.js b/src/ol/control/control.js index 1d63b0f74c..1695780971 100644 --- a/src/ol/control/control.js +++ b/src/ol/control/control.js @@ -82,7 +82,7 @@ ol.control.Control.prototype.disposeInternal = function() { /** * Get the map associated with this control. * @return {ol.Map} Map. - * @api + * @api stable */ ol.control.Control.prototype.getMap = function() { return this.map_; From 602deafc86e02a75cc5c35109510b9a53cd6203e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:46:44 +0200 Subject: [PATCH 02/10] Add @api stable annotations for ol.control.Attribution --- externs/olx.js | 2 +- src/ol/control/attributioncontrol.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 5663f0df80..6099abe4d3 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -10,7 +10,7 @@ var olx; /** * @typedef {{html: string, * tileRanges: (Object.>|undefined)}} - * @api + * @api stable */ olx.AttributionOptions; diff --git a/src/ol/control/attributioncontrol.js b/src/ol/control/attributioncontrol.js index 6239585d5d..5bd041f3fb 100644 --- a/src/ol/control/attributioncontrol.js +++ b/src/ol/control/attributioncontrol.js @@ -26,7 +26,7 @@ goog.require('ol.pointer.PointerEventHandler'); * @constructor * @extends {ol.control.Control} * @param {olx.control.AttributionOptions=} opt_options Attribution options. - * @api + * @api stable */ ol.control.Attribution = function(opt_options) { @@ -362,7 +362,7 @@ ol.control.Attribution.prototype.handleToggle_ = function() { /** * @return {boolean} True if the widget is collapsible. - * @api + * @api stable */ ol.control.Attribution.prototype.getCollapsible = function() { return this.collapsible_; @@ -371,7 +371,7 @@ ol.control.Attribution.prototype.getCollapsible = function() { /** * @param {boolean} collapsible True if the widget is collapsible. - * @api + * @api stable */ ol.control.Attribution.prototype.setCollapsible = function(collapsible) { if (this.collapsible_ === collapsible) { @@ -387,7 +387,7 @@ ol.control.Attribution.prototype.setCollapsible = function(collapsible) { /** * @param {boolean} collapsed True if the widget is collapsed. - * @api + * @api stable */ ol.control.Attribution.prototype.setCollapsed = function(collapsed) { if (!this.collapsible_ || this.collapsed_ === collapsed) { @@ -399,7 +399,7 @@ ol.control.Attribution.prototype.setCollapsed = function(collapsed) { /** * @return {boolean} True if the widget is collapsed. - * @api + * @api stable */ ol.control.Attribution.prototype.getCollapsed = function() { return this.collapsed_; From ecbf3bc69291fb9f41d172e21782ed7702d2b3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:48:43 +0200 Subject: [PATCH 03/10] Add @api stable annotations for ol.control.defaults --- src/ol/control/controldefaults.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/control/controldefaults.js b/src/ol/control/controldefaults.js index b97351f410..c9c6170ac9 100644 --- a/src/ol/control/controldefaults.js +++ b/src/ol/control/controldefaults.js @@ -16,7 +16,7 @@ goog.require('ol.control.Zoom'); * * @param {olx.control.DefaultsOptions=} opt_options Defaults options. * @return {ol.Collection.} Controls. - * @api + * @api stable */ ol.control.defaults = function(opt_options) { From 39431dff9e1debe2a01cdba16513a2aa20c06e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:50:24 +0200 Subject: [PATCH 04/10] Add @api stable annotations for ol.control.MousePosition --- externs/olx.js | 2 +- src/ol/control/mousepositioncontrol.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 6099abe4d3..cd8820f155 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -897,7 +897,7 @@ olx.control.FullScreenOptions.prototype.target; * projection: ol.proj.ProjectionLike, * target: (Element|undefined), * undefinedHTML: (string|undefined)}} - * @api + * @api stable */ olx.control.MousePositionOptions; diff --git a/src/ol/control/mousepositioncontrol.js b/src/ol/control/mousepositioncontrol.js index 764fc94691..05fb83d751 100644 --- a/src/ol/control/mousepositioncontrol.js +++ b/src/ol/control/mousepositioncontrol.js @@ -37,7 +37,7 @@ ol.control.MousePositionProperty = { * @extends {ol.control.Control} * @param {olx.control.MousePositionOptions=} opt_options Mouse position * options. - * @api + * @api stable */ ol.control.MousePosition = function(opt_options) { @@ -130,7 +130,7 @@ ol.control.MousePosition.prototype.handleProjectionChanged_ = function() { * @return {ol.CoordinateFormatType|undefined} The format to render the current * position in. * @observable - * @api + * @api stable */ ol.control.MousePosition.prototype.getCoordinateFormat = function() { return /** @type {ol.CoordinateFormatType|undefined} */ ( @@ -146,7 +146,7 @@ goog.exportProperty( * @return {ol.proj.Projection|undefined} The projection to report mouse * position in. * @observable - * @api + * @api stable */ ol.control.MousePosition.prototype.getProjection = function() { return /** @type {ol.proj.Projection|undefined} */ ( @@ -183,7 +183,7 @@ ol.control.MousePosition.prototype.handleMouseOut = function(browserEvent) { /** * @inheritDoc - * @api + * @api stable */ ol.control.MousePosition.prototype.setMap = function(map) { goog.base(this, 'setMap', map); @@ -203,7 +203,7 @@ ol.control.MousePosition.prototype.setMap = function(map) { * @param {ol.CoordinateFormatType} format The format to render the current * position in. * @observable - * @api + * @api stable */ ol.control.MousePosition.prototype.setCoordinateFormat = function(format) { this.set(ol.control.MousePositionProperty.COORDINATE_FORMAT, format); @@ -218,7 +218,7 @@ goog.exportProperty( * @param {ol.proj.Projection} projection The projection to report mouse * position in. * @observable - * @api + * @api stable */ ol.control.MousePosition.prototype.setProjection = function(projection) { this.set(ol.control.MousePositionProperty.PROJECTION, projection); From 975e81a0413fddd5d75d089e91dde92795e1b102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:51:05 +0200 Subject: [PATCH 05/10] Add @api stable annotations for ol.control.Rotate --- externs/olx.js | 2 +- src/ol/control/rotatecontrol.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index cd8820f155..bd67a719eb 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -982,7 +982,7 @@ olx.control.ScaleLineOptions.prototype.units; * tipLabel: (string|undefined), * target: (Element|undefined), * autoHide: (boolean|undefined)}} - * @api + * @api stable */ olx.control.RotateOptions; diff --git a/src/ol/control/rotatecontrol.js b/src/ol/control/rotatecontrol.js index 3de372ce91..ddb29ee567 100644 --- a/src/ol/control/rotatecontrol.js +++ b/src/ol/control/rotatecontrol.js @@ -21,7 +21,7 @@ goog.require('ol.pointer.PointerEventHandler'); * @constructor * @extends {ol.control.Control} * @param {olx.control.RotateOptions=} opt_options Rotate options. - * @api + * @api stable */ ol.control.Rotate = function(opt_options) { From d8afc96aa382cf21165d7d02524cc6f98d6acd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:52:40 +0200 Subject: [PATCH 06/10] Add @api stable annotations for ol.control.ScaleLine --- externs/olx.js | 2 +- src/ol/control/scalelinecontrol.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index bd67a719eb..8fb2632c3b 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -942,7 +942,7 @@ olx.control.MousePositionOptions.prototype.undefinedHTML; * minWidth: (number|undefined), * target: (Element|undefined), * units: (ol.control.ScaleLineUnits|string|undefined)}} - * @api + * @api stable */ olx.control.ScaleLineOptions; diff --git a/src/ol/control/scalelinecontrol.js b/src/ol/control/scalelinecontrol.js index fd874913bd..6d44010d9d 100644 --- a/src/ol/control/scalelinecontrol.js +++ b/src/ol/control/scalelinecontrol.js @@ -29,7 +29,7 @@ ol.control.ScaleLineProperty = { * Units for the scale line. Supported values are `'degrees'`, `'imperial'`, * `'nautical'`, `'metric'`, `'us'`. * @enum {string} - * @api + * @api stable */ ol.control.ScaleLineUnits = { DEGREES: 'degrees', @@ -53,7 +53,7 @@ ol.control.ScaleLineUnits = { * @constructor * @extends {ol.control.Control} * @param {olx.control.ScaleLineOptions=} opt_options Scale line options. - * @api + * @api stable */ ol.control.ScaleLine = function(opt_options) { @@ -141,7 +141,7 @@ ol.control.ScaleLine.LEADING_DIGITS = [1, 2, 5]; * @return {ol.control.ScaleLineUnits|undefined} The units to use in the scale * line. * @observable - * @api + * @api stable */ ol.control.ScaleLine.prototype.getUnits = function() { return /** @type {ol.control.ScaleLineUnits|undefined} */ ( @@ -178,7 +178,7 @@ ol.control.ScaleLine.prototype.handleUnitsChanged_ = function() { /** * @param {ol.control.ScaleLineUnits} units The units to use in the scale line. * @observable - * @api + * @api stable */ ol.control.ScaleLine.prototype.setUnits = function(units) { this.set(ol.control.ScaleLineProperty.UNITS, units); From c3e0b5f282b9a5513be0b151987ff58fd6aa9808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:53:15 +0200 Subject: [PATCH 07/10] Add @api stable annotations for ol.control.Zoom --- externs/olx.js | 2 +- src/ol/control/zoomcontrol.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 8fb2632c3b..c589cc710a 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -1038,7 +1038,7 @@ olx.control.RotateOptions.prototype.target; * zoomOutTipLabel: (string|undefined), * delta: (number|undefined), * target: (Element|undefined)}} - * @api + * @api stable */ olx.control.ZoomOptions; diff --git a/src/ol/control/zoomcontrol.js b/src/ol/control/zoomcontrol.js index 824fe8deb8..5ded1a0426 100644 --- a/src/ol/control/zoomcontrol.js +++ b/src/ol/control/zoomcontrol.js @@ -21,7 +21,7 @@ goog.require('ol.pointer.PointerEventHandler'); * @constructor * @extends {ol.control.Control} * @param {olx.control.ZoomOptions=} opt_options Zoom options. - * @api + * @api stable */ ol.control.Zoom = function(opt_options) { From 967bbebaa09e225b5f232a3d98a4a0ce348d600c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:55:00 +0200 Subject: [PATCH 08/10] Add @api stable annotations for ol.control.ZoomSlider --- externs/olx.js | 2 +- src/ol/control/zoomslidercontrol.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index c589cc710a..1e0fabe1b8 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -1103,7 +1103,7 @@ olx.control.ZoomOptions.prototype.target; * @typedef {{className: (string|undefined), * maxResolution: (number|undefined), * minResolution: (number|undefined)}} - * @api + * @api stable */ olx.control.ZoomSliderOptions; diff --git a/src/ol/control/zoomslidercontrol.js b/src/ol/control/zoomslidercontrol.js index 9ae52f5b4e..6a6617c51b 100644 --- a/src/ol/control/zoomslidercontrol.js +++ b/src/ol/control/zoomslidercontrol.js @@ -32,7 +32,7 @@ goog.require('ol.easing'); * @constructor * @extends {ol.control.Control} * @param {olx.control.ZoomSliderOptions=} opt_options Zoom slider options. - * @api + * @api stable */ ol.control.ZoomSlider = function(opt_options) { From 26ec1d59245d4a66dba4d505abca505049a8e4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:55:35 +0200 Subject: [PATCH 09/10] Add @api stable annotations for ol.control.ZoomToExtent --- externs/olx.js | 2 +- src/ol/control/zoomtoextentcontrol.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 1e0fabe1b8..9159678620 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -1134,7 +1134,7 @@ olx.control.ZoomSliderOptions.prototype.minResolution; * target: (Element|undefined), * tipLabel: (string|undefined), * extent: (ol.Extent|undefined)}} - * @api + * @api stable */ olx.control.ZoomToExtentOptions; diff --git a/src/ol/control/zoomtoextentcontrol.js b/src/ol/control/zoomtoextentcontrol.js index 6fdd55ab8d..441c939878 100644 --- a/src/ol/control/zoomtoextentcontrol.js +++ b/src/ol/control/zoomtoextentcontrol.js @@ -19,7 +19,7 @@ goog.require('ol.pointer.PointerEventHandler'); * @constructor * @extends {ol.control.Control} * @param {olx.control.ZoomToExtentOptions=} opt_options Options. - * @api + * @api stable */ ol.control.ZoomToExtent = function(opt_options) { var options = goog.isDef(opt_options) ? opt_options : {}; From 24651ba21ecc26849d08524098eb057eefbd25b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 19 Aug 2014 16:58:03 +0200 Subject: [PATCH 10/10] Add @api stable annotations for ol.control.FullScreen --- src/ol/control/fullscreencontrol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/control/fullscreencontrol.js b/src/ol/control/fullscreencontrol.js index 04052ed02f..83b653e804 100644 --- a/src/ol/control/fullscreencontrol.js +++ b/src/ol/control/fullscreencontrol.js @@ -25,7 +25,7 @@ goog.require('ol.pointer.PointerEventHandler'); * @constructor * @extends {ol.control.Control} * @param {olx.control.FullScreenOptions=} opt_options Options. - * @api + * @api stable */ ol.control.FullScreen = function(opt_options) {