Improve documentation for animation-related stuff
The animation-related code is missing sufficient detail to make it usable without digging in to the code. This adds some additional detail to the ol.animation namespace, the related options, and makes note of the existance of ol.animation in the documentation of ol.Map.addPreRenderFunction(s).
This commit is contained in:
@@ -363,7 +363,8 @@ ol.Map.prototype.addLayer = function(layer) {
|
||||
|
||||
/**
|
||||
* Add a prerender function. This can be used for attaching animations to
|
||||
* be performed before setting the map's center.
|
||||
* be performed before setting the map's center. The {@link ol.animation}
|
||||
* namespace provides several static methods for creating prerender functions.
|
||||
* @param {ol.PreRenderFunction} preRenderFunction Pre-render function.
|
||||
*/
|
||||
ol.Map.prototype.addPreRenderFunction = function(preRenderFunction) {
|
||||
@@ -374,7 +375,7 @@ ol.Map.prototype.addPreRenderFunction = function(preRenderFunction) {
|
||||
|
||||
/**
|
||||
* Add prerender functions. This can be used for attaching animations to
|
||||
* be performed before setting the map's center.
|
||||
* be performed before setting the map's center. See {@link ol.animation}
|
||||
* @param {Array.<ol.PreRenderFunction>} preRenderFunctions
|
||||
* Pre-render functions.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user