Merge pull request #6390 from fredj/deprecated_tag

Tag deprecated functions with @deprecated
This commit is contained in:
Frédéric Junod
2017-01-23 14:50:52 +01:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -7,11 +7,11 @@ goog.require('ol.easing');
/** /**
* Deprecated (use {@link ol.View#animate} instead).
* Generate an animated transition that will "bounce" the resolution as it * Generate an animated transition that will "bounce" the resolution as it
* approaches the final value. * approaches the final value.
* @param {olx.animation.BounceOptions} options Bounce options. * @param {olx.animation.BounceOptions} options Bounce options.
* @return {ol.PreRenderFunction} Pre-render function. * @return {ol.PreRenderFunction} Pre-render function.
* @deprecated Use {@link ol.View#animate} instead.
* @api * @api
*/ */
ol.animation.bounce = function(options) { ol.animation.bounce = function(options) {
@@ -46,10 +46,10 @@ ol.animation.bounce = function(options) {
/** /**
* Deprecated (use {@link ol.View#animate} instead).
* Generate an animated transition while updating the view center. * Generate an animated transition while updating the view center.
* @param {olx.animation.PanOptions} options Pan options. * @param {olx.animation.PanOptions} options Pan options.
* @return {ol.PreRenderFunction} Pre-render function. * @return {ol.PreRenderFunction} Pre-render function.
* @deprecated Use {@link ol.View#animate} instead.
* @api * @api
*/ */
ol.animation.pan = function(options) { ol.animation.pan = function(options) {
@@ -88,10 +88,10 @@ ol.animation.pan = function(options) {
/** /**
* Deprecated (use {@link ol.View#animate} instead).
* Generate an animated transition while updating the view rotation. * Generate an animated transition while updating the view rotation.
* @param {olx.animation.RotateOptions} options Rotate options. * @param {olx.animation.RotateOptions} options Rotate options.
* @return {ol.PreRenderFunction} Pre-render function. * @return {ol.PreRenderFunction} Pre-render function.
* @deprecated Use {@link ol.View#animate} instead.
* @api * @api
*/ */
ol.animation.rotate = function(options) { ol.animation.rotate = function(options) {
@@ -136,10 +136,10 @@ ol.animation.rotate = function(options) {
/** /**
* Deprecated (use {@link ol.View#animate} instead).
* Generate an animated transition while updating the view resolution. * Generate an animated transition while updating the view resolution.
* @param {olx.animation.ZoomOptions} options Zoom options. * @param {olx.animation.ZoomOptions} options Zoom options.
* @return {ol.PreRenderFunction} Pre-render function. * @return {ol.PreRenderFunction} Pre-render function.
* @deprecated Use {@link ol.View#animate} instead.
* @api * @api
*/ */
ol.animation.zoom = function(options) { ol.animation.zoom = function(options) {

View File

@@ -521,11 +521,11 @@ ol.Map.prototype.addOverlayInternal_ = function(overlay) {
/** /**
* Deprecated (use {@link ol.View#animate} instead).
* Add functions to be called before rendering. This can be used for attaching * Add functions to be called before rendering. This can be used for attaching
* animations before updating the map's view. The {@link ol.animation} * animations before updating the map's view. The {@link ol.animation}
* namespace provides several static methods for creating prerender functions. * namespace provides several static methods for creating prerender functions.
* @param {...ol.PreRenderFunction} var_args Any number of pre-render functions. * @param {...ol.PreRenderFunction} var_args Any number of pre-render functions.
* @deprecated Use {@link ol.View#animate} instead.
* @api * @api
*/ */
ol.Map.prototype.beforeRender = function(var_args) { ol.Map.prototype.beforeRender = function(var_args) {